Class: DBF::ColumnType::Base
- Inherits:
-
Object
- Object
- DBF::ColumnType::Base
- Defined in:
- lib/dbf/column_type.rb
Direct Known Subclasses
Boolean, Currency, Date, DateTime, Double, Float, General, Memo, Nil, Number, SignedLong, SignedLong2, String
Instance Attribute Summary collapse
-
#decimal ⇒ Object
readonly
Returns the value of attribute decimal.
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
Instance Method Summary collapse
-
#initialize(column) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(column) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/dbf/column_type.rb', line 8 def initialize(column) @decimal = column.decimal @encoding = column.encoding end |
Instance Attribute Details
#decimal ⇒ Object (readonly)
Returns the value of attribute decimal.
4 5 6 |
# File 'lib/dbf/column_type.rb', line 4 def decimal @decimal end |
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
4 5 6 |
# File 'lib/dbf/column_type.rb', line 4 def encoding @encoding end |