Class: RelateIQ::RiqList

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/relateiq/riq_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list) ⇒ RiqList

Returns a new instance of RiqList.



7
8
9
# File 'lib/relateiq/riq_list.rb', line 7

def initialize(list)
  @list = list
end

Instance Attribute Details

#listObject

Returns the value of attribute list.



5
6
7
# File 'lib/relateiq/riq_list.rb', line 5

def list
  @list
end

Instance Method Details

#<<(val) ⇒ Object



11
12
13
# File 'lib/relateiq/riq_list.rb', line 11

def <<(val)
    @list << val
end

#each(&block) ⇒ Object



15
16
17
# File 'lib/relateiq/riq_list.rb', line 15

def each(&block)
    @list.each(&block)
end