Method: Invoicing::ClassInfo::Base#method
- Defined in:
- lib/invoicing/class_info.rb
#method(name) ⇒ Object
If there is an option with the given key, returns the associated value; otherwise returns the key. This is useful for mapping method names to their renamed equivalents through options.
168 169 170 171 |
# File 'lib/invoicing/class_info.rb', line 168 def method(name) name = name.to_sym ([name] || name).to_s end |