Method: ActiveModel::Type::String#to_immutable_string

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

#to_immutable_stringObject



22
23
24
25
26
27
28
29
30
# File 'activemodel/lib/active_model/type/string.rb', line 22

def to_immutable_string
  ImmutableString.new(
    true: @true,
    false: @false,
    limit: limit,
    precision: precision,
    scale: scale,
  )
end