Method: ActiveModel::Type::Value#initialize

Defined in:
activemodel/lib/active_model/type/value.rb

#initialize(precision: nil, limit: nil, scale: nil) ⇒ Value

Initializes a type with three basic configuration settings: precision, limit, and scale. The Value base class does not define behavior for these settings. It uses them for equality comparison and hash key generation only.



17
18
19
20
21
22
# File 'activemodel/lib/active_model/type/value.rb', line 17

def initialize(precision: nil, limit: nil, scale: nil)
  super()
  @precision = precision
  @scale = scale
  @limit = limit
end