Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/get-your-rep/patches.rb
Overview
:nodoc
Direct Known Subclasses
Instance Method Summary collapse
-
#to_del ⇒ Object
Converts an Array to a Delegation.
-
#to_rep ⇒ Object
Converts an Array to a Representative.
Instance Method Details
#to_del ⇒ Object
Converts an Array to a Delegation
4 5 6 |
# File 'lib/get-your-rep/patches.rb', line 4 def to_del Delegation.new(self) end |
#to_rep ⇒ Object
Converts an Array to a Representative
9 10 11 |
# File 'lib/get-your-rep/patches.rb', line 9 def to_rep Representative[to_h] end |