Class: Tipo::Info
- Inherits:
-
Object
- Object
- Tipo::Info
- Defined in:
- lib/tipo.rb
Instance Attribute Summary collapse
-
#font ⇒ Object
readonly
Returns the value of attribute font.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(file) ⇒ Info
constructor
A new instance of Info.
- #method_missing(table, *args, &block) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(table, *args, &block) ⇒ Object
18 19 20 21 |
# File 'lib/tipo.rb', line 18 def method_missing table, *args, &block table = "tipo/table/#{table}".camelize.constantize table.new @header, @font end |
Instance Attribute Details
#font ⇒ Object (readonly)
Returns the value of attribute font.
11 12 13 |
# File 'lib/tipo.rb', line 11 def font @font end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
11 12 13 |
# File 'lib/tipo.rb', line 11 def header @header end |