Method: Humanized::KNG#g
- Defined in:
- lib/humanized/interpolation/kng.rb
#g(humanizer, genus, *args) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/humanized/interpolation/kng.rb', line 61 def g(humanizer, genus, *args) if args.size == 3 # male, female, neutral genus = x_to_genus(humanizer, genus) a = [:male,:female,:neutral].zip(args) if genus.kind_of? Set return genus.map{|g| a.assoc(g)[1] } end return a.assoc(genus)[1] end end |