Class: Coopy::IndexItem

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/coopy/index_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIndexItem

Returns a new instance of IndexItem.



7
8
# File 'lib/lib/coopy/index_item.rb', line 7

def initialize
end

Instance Attribute Details

#lstObject

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