instance method
encode_with
Ruby on Rails 3.2.22.5
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/conversions.rb, line 29
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/conversions.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in BigDecimal