Class: RelateIQ::RiqList
- Inherits:
-
Object
- Object
- RelateIQ::RiqList
- Includes:
- Enumerable
- Defined in:
- lib/relateiq/riq_list.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Instance Method Summary collapse
- #<<(val) ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(list) ⇒ RiqList
constructor
A new instance of RiqList.
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
#list ⇒ Object
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 |