Class: RubyRTF::Table
- Inherits:
-
Object
- Object
- RubyRTF::Table
- Defined in:
- lib/ruby-rtf/table.rb
Defined Under Namespace
Classes: Row
Instance Attribute Summary collapse
-
#half_gap ⇒ Object
Returns the value of attribute half_gap.
-
#left_margin ⇒ Object
Returns the value of attribute left_margin.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
- #add_row ⇒ Object
- #current_row ⇒ Object
-
#initialize ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize ⇒ Table
Returns a new instance of Table.
5 6 7 8 9 10 11 |
# File 'lib/ruby-rtf/table.rb', line 5 def initialize @left_margin = 0 @half_gap = 0 @rows = [] add_row end |
Instance Attribute Details
#half_gap ⇒ Object
Returns the value of attribute half_gap.
3 4 5 |
# File 'lib/ruby-rtf/table.rb', line 3 def half_gap @half_gap end |
#left_margin ⇒ Object
Returns the value of attribute left_margin.
3 4 5 |
# File 'lib/ruby-rtf/table.rb', line 3 def left_margin @left_margin end |
#rows ⇒ Object
Returns the value of attribute rows.
3 4 5 |
# File 'lib/ruby-rtf/table.rb', line 3 def rows @rows end |