Class: PdfTempura::Document::Table::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf_tempura/document/table/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, width, height, options = {}) ⇒ Column

Returns a new instance of Column.



6
7
8
9
10
11
# File 'lib/pdf_tempura/document/table/column.rb', line 6

def initialize(name, width, height, options = {})
  @name = name
  @width = width
  @height = height
  @options = options
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



4
5
6
# File 'lib/pdf_tempura/document/table/column.rb', line 4

def height
  @height
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/pdf_tempura/document/table/column.rb', line 4

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/pdf_tempura/document/table/column.rb', line 4

def options
  @options
end

#widthObject (readonly)

Returns the value of attribute width.



4
5
6
# File 'lib/pdf_tempura/document/table/column.rb', line 4

def width
  @width
end

Instance Method Details

#generates_field?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/pdf_tempura/document/table/column.rb', line 13

def generates_field?
  true
end