Method: ActiveModel::Type::ImmutableString#initialize
- Defined in:
- activemodel/lib/active_model/type/immutable_string.rb
#initialize(**args) ⇒ ImmutableString
Returns a new instance of ImmutableString.
38 39 40 41 42 |
# File 'activemodel/lib/active_model/type/immutable_string.rb', line 38 def initialize(**args) @true = -(args.delete(:true)&.to_s || "t") @false = -(args.delete(:false)&.to_s || "f") super end |