Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/get-your-rep/patches.rb
Overview
Custom methods for Hash and its descendants.
Direct Known Subclasses
Instance Method Summary collapse
-
#to_del ⇒ Object
Wraps a Hash in a Delegation.
-
#to_rep ⇒ Object
Converts a Hash to a Representative.
Instance Method Details
#to_del ⇒ Object
Wraps a Hash in a Delegation
17 18 19 20 |
# File 'lib/get-your-rep/patches.rb', line 17 def to_del del = Delegation.new del << self end |
#to_rep ⇒ Object
Converts a Hash to a Representative
23 24 25 |
# File 'lib/get-your-rep/patches.rb', line 23 def to_rep Representative[self] end |