Methods
#
D
E
T
Constants
DEFAULT_STRING_FORMAT = 'F'
 
YAML_MAPPING = { 'Infinity' => '.Inf', '-Infinity' => '-.Inf', 'NaN' => '.NaN' }
 
Instance Public methods
_original_to_s(*args)
Alias for: to_s
duplicable?()
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 87
def duplicable?
  true
end
encode_with(coder)
# 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
to_formatted_s(*args)
Also aliased as: to_s
# File activesupport/lib/active_support/core_ext/big_decimal/conversions.rb, line 6
def to_formatted_s(*args)
  if args[0].is_a?(Symbol)
    super
  else
    format = args[0] || DEFAULT_STRING_FORMAT
    _original_to_s(format)
  end
end
to_s(*args)
Also aliased as: _original_to_s
Alias for: to_formatted_s