Class: TablePal::PlainText

Inherits:
Object
  • Object
show all
Defined in:
lib/plain_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tableObject (readonly)

Returns the value of attribute table.



4
5
6
# File 'lib/plain_text.rb', line 4

def table
  @table
end