Module: Rpub::HashDelegation::ClassMethods
- Defined in:
- lib/rpub/hash_delegation.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) delegate_to_hash(attr)
9 10 11 |
# File 'lib/rpub/hash_delegation.rb', line 9 def delegate_to_hash(attr) define_method(:delegated_hash) { send attr } end |