Class: Coradoc::Document::Table
- Inherits:
-
Object
- Object
- Coradoc::Document::Table
- Defined in:
- lib/coradoc/document/table.rb
Defined Under Namespace
Classes: Row
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, rows) ⇒ Table
constructor
A new instance of Table.
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
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
4 5 6 |
# File 'lib/coradoc/document/table.rb', line 4 def rows @rows end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/coradoc/document/table.rb', line 4 def title @title end |