class Coopy::IndexItem
Attributes
lst[RW]
protected - in ruby this doesn't play well with static/inline methods
Public Class Methods
new()
click to toggle source
# File lib/lib/coopy/index_item.rb, line 7 def initialize end
Public Instance Methods
add(i)
click to toggle source
# File lib/lib/coopy/index_item.rb, line 16 def add(i) @lst = Array.new if @lst == nil @lst.push(i) @lst.length end
as_list()
click to toggle source
# File lib/lib/coopy/index_item.rb, line 30 def as_list @lst end
length()
click to toggle source
# File lib/lib/coopy/index_item.rb, line 22 def length @lst.length end
value()
click to toggle source
# File lib/lib/coopy/index_item.rb, line 26 def value @lst[0] end