Class: DBF::ColumnType::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dbf/column_type.rb

Constant Summary collapse

ENCODING_ARGS =
[
  Encoding.default_external,
  {undef: :replace, invalid: :replace}
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decimal, encoding) ⇒ Base



11
12
13
14
# File 'lib/dbf/column_type.rb', line 11

def initialize(decimal, encoding)
  @decimal = decimal
  @encoding = encoding
end

Instance Attribute Details

#decimalObject (readonly)

Returns the value of attribute decimal.



9
10
11
# File 'lib/dbf/column_type.rb', line 9

def decimal
  @decimal
end

#encodingObject (readonly)

Returns the value of attribute encoding.



9
10
11
# File 'lib/dbf/column_type.rb', line 9

def encoding
  @encoding
end