Class InfoList
In: objectlist.rb
Parent: Object

Methods

Attributes

objects  [RW] 
rows  [RW] 

Public Class methods

[Source]

# File objectlist.rb, line 26
   def initialize
      @rows = []
      @objects = []
   end

Public Instance methods

[Source]

# File objectlist.rb, line 60
   def currentrownum
      # puts @rows.last.class
      return @rows.last.to_i + 1
   end

[Source]

# File objectlist.rb, line 30
   def insert(row1, object)
      @rows.push(row1)
      @objects.push(object)
      if row1.class == Fixnum
         $globalobjects[row1] = object
      end 
   end

[Source]

# File objectlist.rb, line 45
   def objonrow(onrow)
      @rows.each_with_index do |row,idx|
         if onrow == row
            return @objects[idx]
         end
      end
   end

[Source]

# File objectlist.rb, line 37
   def whichobject(selrow)
      @rows.each do |row|
         if selrow == row
            return @objects[rows[0].to_i]
            break
         end
      end
   end

[Source]

# File objectlist.rb, line 52
   def whichrows(selobject)
      @objects.each_with_index do |object,index|
         if object == selobject 
            return @rows[index]
            break
         end
      end
   end

[Validate]