class NumberedList::ItemValue

Public Instance Methods

builder_method_name() click to toggle source
# File lib/numbered_list/item_value.rb, line 4
def builder_method_name
  method_name.to_sym
end
method_name() click to toggle source
# File lib/numbered_list/item_value.rb, line 7
def method_name
  name.downcase.gsub(":", "_")
end
query_method_name() click to toggle source
# File lib/numbered_list/item_value.rb, line 10
def query_method_name
  "#{method_name}?".to_sym
end
to_item_description() click to toggle source
# File lib/numbered_list/item_value.rb, line 13
def to_item_description
  "#{formatted} :: #{description}"
end