Class: Array

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

Overview

:nodoc

Direct Known Subclasses

Delegation

Instance Method Summary collapse

Instance Method Details

#to_delObject

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_repObject

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