Class: Coopy::IndexItem
- Inherits:
-
Object
- Object
- Coopy::IndexItem
- Defined in:
- lib/lib/coopy/index_item.rb
Instance Attribute Summary collapse
-
#lst ⇒ Object
Returns the value of attribute lst.
Instance Method Summary collapse
- #add(i) ⇒ Object
-
#initialize ⇒ IndexItem
constructor
A new instance of IndexItem.
Constructor Details
#initialize ⇒ IndexItem
Returns a new instance of IndexItem.
7 8 |
# File 'lib/lib/coopy/index_item.rb', line 7 def initialize end |
Instance Attribute Details
#lst ⇒ Object
Returns the value of attribute lst.
10 11 12 |
# File 'lib/lib/coopy/index_item.rb', line 10 def lst @lst end |
Instance Method Details
#add(i) ⇒ Object
12 13 14 15 16 |
# File 'lib/lib/coopy/index_item.rb', line 12 def add(i) @lst = Array.new if @lst == nil @lst.push(i) return @lst.length end |