Class: EBPS::Text::Cell

Inherits:
Paragraph show all
Defined in:
lib/ebps/text/table.rb

Instance Attribute Summary collapse

Attributes inherited from Paragraph

#align, #formats, #text

Instance Method Summary collapse

Methods inherited from Paragraph

#<<, #method_missing, #set_format, #to_s

Constructor Details

#initialize(*args) ⇒ Cell

Returns a new instance of Cell.



10
11
12
13
14
# File 'lib/ebps/text/table.rb', line 10

def initialize(*args)
  @col_span = 1
  @row_span = 1
  super(*args)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EBPS::Text::Paragraph

Instance Attribute Details

#col_spanObject

Returns the value of attribute col_span.



9
10
11
# File 'lib/ebps/text/table.rb', line 9

def col_span
  @col_span
end

#row_spanObject

Returns the value of attribute row_span.



9
10
11
# File 'lib/ebps/text/table.rb', line 9

def row_span
  @row_span
end