Class: Pdfrb::Layout::TableBox::Cell

Inherits:
Struct
  • Object
show all
Defined in:
lib/pdfrb/layout/table_box.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#boxObject

Returns the value of attribute box

Returns:

  • (Object)

    the current value of box



13
14
15
# File 'lib/pdfrb/layout/table_box.rb', line 13

def box
  @box
end

#colspanObject

Returns the value of attribute colspan

Returns:

  • (Object)

    the current value of colspan



13
14
15
# File 'lib/pdfrb/layout/table_box.rb', line 13

def colspan
  @colspan
end

#rowspanObject

Returns the value of attribute rowspan

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


18
# File 'lib/pdfrb/layout/table_box.rb', line 18

def fit?(*args); box.fit?(*args); end

#heightObject



22
# File 'lib/pdfrb/layout/table_box.rb', line 22

def height; box.height; end

#widthObject



24
# File 'lib/pdfrb/layout/table_box.rb', line 24

def width; box.width; end