Class: Tabledata::ColumnDefinition::FloatProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/tabledata/column_definition.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ FloatProcessor


82
83
84
85
86
87
88
# File 'lib/tabledata/column_definition.rb', line 82

def initialize(options)
  options     = options.dup
  value_range = options.delete(:between)
  @min        = options.delete(:min) || (value_range && value_range.begin) || 0
  @max        = options.delete(:max) || (value_range && value_range.end) || 0
  @round      = options.delete(:round)
end