instance method encode_with

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v4.2.9

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9

Signature

encode_with(coder)

No documentation comment.

Parameters

coder req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close