Class: Tipo::Table::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tipo/table/base.rb

Direct Known Subclasses

Naming, Substitution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(font_header, font) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/tipo/table/base.rb', line 7

def initialize font_header, font
  @font_header = font_header
  @font = font
end

Instance Attribute Details

#fontObject (readonly)

Returns the value of attribute font.



4
5
6
# File 'lib/tipo/table/base.rb', line 4

def font
  @font
end

#font_headerObject (readonly)

Returns the value of attribute font_header.



4
5
6
# File 'lib/tipo/table/base.rb', line 4

def font_header
  @font_header
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/tipo/table/base.rb', line 5

def name
  @name
end

Instance Method Details

#offsetObject



12
13
14
# File 'lib/tipo/table/base.rb', line 12

def offset 
  seek_to_table @name 
end