class Table

this class represents a table, it's just a two-dimensional array, [[a,x,f],]

Attributes

objects[RW]
types[RW]

Public Class Methods

new() click to toggle source
# File lib/annlat/AnnLat.rb, line 192
def initialize
  @objects=[]
  @types=[]
end

Public Instance Methods

each() { |row| ... } click to toggle source
# File lib/annlat/AnnLat.rb, line 197
def each
  @objects.each {|row| yield(row)}
end
Also aliased as: each_row
each_row()
Alias for: each
my_json() click to toggle source
# File lib/annlat/AnnLat.rb, line 185
def my_json
  t=Table.new
  t.objects = self.objects.map {|row| row.map {|cell| cell.my_json }}
  t.types=self.types
  t
end