Module: RailsCom::ActiveModel::TypeValue
- Defined in:
- lib/active_model/type_value.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/active_model/type_value.rb', line 5 def @options end |
Instance Method Details
#initialize(precision: nil, limit: nil, scale: nil, **options) ⇒ Object
7 8 9 10 |
# File 'lib/active_model/type_value.rb', line 7 def initialize(precision: nil, limit: nil, scale: nil, **) @options = super(precision: precision, limit: scale, scale: limit) end |
#input_type ⇒ Object
12 13 14 |
# File 'lib/active_model/type_value.rb', line 12 def input_type type end |