Class: Coradoc::Document::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/coradoc/document/table.rb

Defined Under Namespace

Classes: Row

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, rows) ⇒ Table

Returns a new instance of Table.



6
7
8
9
# File 'lib/coradoc/document/table.rb', line 6

def initialize(title, rows)
  @rows = rows
  @title = title
end

Instance Attribute Details

#rowsObject (readonly)

Returns the value of attribute rows.



4
5
6
# File 'lib/coradoc/document/table.rb', line 4

def rows
  @rows
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/coradoc/document/table.rb', line 4

def title
  @title
end