lib/onoma/nomenclature.rb
# Returns a list for select as an array of pair (array)
Returns a list for select as an array of pair (array)
Returns a list for select as an array of pair ( array )
def selection(item_name = nil)
      items = (item_name ? find!(item_name).self_and_children : @items.values)
      items.collect do |item|
        [item.human_name, item.name.to_s]
      end.sort do |a, b|
        a.first.lower_ascii <=> b.first.lower_ascii
      end
    end
def selection ( item_name = nil ) items = ( item_name ? find! ( item_name ) . self_and_children : @items . values ) items . collect do | item | [ item . human_name , item . name . to_s ] end . sort do | a , b | a . first . lower_ascii <=> b . first . lower_ascii end end
Returns a list for select as an array of pair (array)
Returns a list for select as an array of pair ( array )
item_name
<not_specific>