Class: DBF::ColumnType::Boolean
- Inherits:
-
Base
- Object
- Base
- DBF::ColumnType::Boolean
show all
- Defined in:
- lib/dbf/column_type.rb
Instance Attribute Summary
Attributes inherited from Base
#decimal, #encoding
Instance Method Summary
collapse
Methods inherited from Base
#decode, #initialize
Instance Method Details
#blank_value ⇒ Object
89
|
# File 'lib/dbf/column_type.rb', line 89
def blank_value = false
|
#skip_blank? ⇒ Boolean
88
|
# File 'lib/dbf/column_type.rb', line 88
def skip_blank? = true
|
#type_cast(value) ⇒ Object
92
93
94
95
|
# File 'lib/dbf/column_type.rb', line 92
def type_cast(value)
byte = value.getbyte(0)
byte == 89 || byte == 121 || byte == 84 || byte == 116 end
|