method

encode_with

rails latest stable - Class: BigDecimal

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

encode_with(coder)
public

No documentation available.

# 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