Class: Contrek::Finder::Lists
- Inherits:
-
Object
- Object
- Contrek::Finder::Lists
- Defined in:
- lib/contrek/finder/lists.rb
Defined Under Namespace
Classes: Link
Instance Method Summary collapse
- #add_list ⇒ Object
- #get_data_pointer ⇒ Object
-
#initialize ⇒ Lists
constructor
A new instance of Lists.
Constructor Details
#initialize ⇒ Lists
Returns a new instance of Lists.
5 6 7 |
# File 'lib/contrek/finder/lists.rb', line 5 def initialize @lists = [] end |
Instance Method Details
#add_list ⇒ Object
18 19 20 21 22 |
# File 'lib/contrek/finder/lists.rb', line 18 def add_list list = Contrek::Finder::List.new(@lists.size) @lists << list list end |
#get_data_pointer ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/contrek/finder/lists.rb', line 9 def get_data_pointer data_pointer = Array.new(@lists.size) { [] } @lists.size.times do |n| data_pointer[n] = Link.new(nil, nil, false) end data_pointer end |