instance method
encode_with
Ruby on Rails 4.2.9
Since v3.0.20 Last seen in v4.2.9Signature
encode_with(coder)
No documentation comment.
Parameters
-
coderreq
Source
# File activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb, line 12
def encode_with(coder)
string = to_s
coder.represent_scalar(nil, YAML_MAPPING[string] || string)
end
Defined in activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in BigDecimal