Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/get-your-rep/patches.rb

Overview

Custom methods for Hash and its descendants.

Direct Known Subclasses

Representative

Instance Method Summary collapse

Instance Method Details

#to_delObject

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_repObject

Converts a Hash to a Representative



23
24
25
# File 'lib/get-your-rep/patches.rb', line 23

def to_rep
  Representative[self]
end