Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/simply_useful/core_ext/module/property_delegation.rb
Instance Method Summary collapse
Instance Method Details
#delegate_property(*properties) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/simply_useful/core_ext/module/property_delegation.rb', line 5 def delegate_property *properties = {} methods = [] properties.each do || if .is_a? Hash .merge! else methods << methods << "#{.to_s}=" end end delegate *methods, end |