class BigDecimal

Constants

DEFAULT_STRING_FORMAT
YAML_MAPPING

Public Instance Methods

_original_to_s(*args)
Alias for: to_s
duplicable?() click to toggle source
# File lib/active_support/core_ext/object/duplicable.rb, line 87
def duplicable?
  true
end
encode_with(coder) click to toggle source
# File 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) click to toggle source
Calls superclass method
# File 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
Also aliased as: to_s
to_s(*args)
Also aliased as: _original_to_s
Alias for: to_formatted_s