Class: TablePal::PlainText
- Inherits:
-
Object
- Object
- TablePal::PlainText
- Defined in:
- lib/plain_text.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table:) ⇒ PlainText
constructor
A new instance of PlainText.
Constructor Details
#initialize(table:) ⇒ PlainText
Returns a new instance of PlainText.
6 7 8 9 10 11 12 |
# File 'lib/plain_text.rb', line 6 def initialize(table:) @table = table table.rows.each do |row| print_row(row) end end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
4 5 6 |
# File 'lib/plain_text.rb', line 4 def table @table end |