Class: Pdfrb::Layout::TableBox::Cell
- Inherits:
-
Struct
- Object
- Struct
- Pdfrb::Layout::TableBox::Cell
- Defined in:
- lib/pdfrb/layout/table_box.rb
Instance Attribute Summary collapse
-
#box ⇒ Object
Returns the value of attribute box.
-
#colspan ⇒ Object
Returns the value of attribute colspan.
-
#rowspan ⇒ Object
Returns the value of attribute rowspan.
Instance Method Summary collapse
- #draw(*args) ⇒ Object
- #fit?(*args) ⇒ Boolean
- #height ⇒ Object
-
#initialize(box:, colspan: 1, rowspan: 1) ⇒ Cell
constructor
A new instance of Cell.
- #width ⇒ Object
Constructor Details
#initialize(box:, colspan: 1, rowspan: 1) ⇒ Cell
Returns a new instance of Cell.
14 15 16 |
# File 'lib/pdfrb/layout/table_box.rb', line 14 def initialize(box:, colspan: 1, rowspan: 1) super end |
Instance Attribute Details
#box ⇒ Object
Returns the value of attribute box
13 14 15 |
# File 'lib/pdfrb/layout/table_box.rb', line 13 def box @box end |
#colspan ⇒ Object
Returns the value of attribute colspan
13 14 15 |
# File 'lib/pdfrb/layout/table_box.rb', line 13 def colspan @colspan end |
#rowspan ⇒ Object
Returns the value of attribute rowspan
13 14 15 |
# File 'lib/pdfrb/layout/table_box.rb', line 13 def rowspan @rowspan end |
Instance Method Details
#draw(*args) ⇒ Object
20 |
# File 'lib/pdfrb/layout/table_box.rb', line 20 def draw(*args); box.draw(*args); end |
#fit?(*args) ⇒ Boolean
18 |
# File 'lib/pdfrb/layout/table_box.rb', line 18 def fit?(*args); box.fit?(*args); end |
#height ⇒ Object
22 |
# File 'lib/pdfrb/layout/table_box.rb', line 22 def height; box.height; end |
#width ⇒ Object
24 |
# File 'lib/pdfrb/layout/table_box.rb', line 24 def width; box.width; end |