Method: Invoicing::ClassInfo::Base#set
- Defined in:
- lib/invoicing/class_info.rb
#set(object, method_name, new_value) ⇒ Object
Assigns new_value to method_name= (renamed through options using method) on object. method_name should not include the equals sign.
182 183 184 |
# File 'lib/invoicing/class_info.rb', line 182 def set(object, method_name, new_value) object.send("#{method(method_name)}=", new_value) unless object.nil? end |