edge badge
Methods
D
E
T
Constants
DEFAULT_STRING_FORMAT = 'F'
 
YAML_MAPPING = { 'Infinity' => '.Inf', '-Infinity' => '-.Inf', 'NaN' => '.NaN' }
 
Instance Public methods
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 10
def encode_with(coder)
  string = to_s
  coder.represent_scalar(nil, YAML_MAPPING[string] || string)
end
to_default_s(format = nil, options = nil)
Alias for: to_s
to_s(format = nil, options = nil)
Also aliased as: to_default_s
# File activesupport/lib/active_support/core_ext/big_decimal/conversions.rb, line 8
def to_s(format = nil, options = nil)
  if format.is_a?(Symbol)
    to_formatted_s(format, options || {})
  else
    to_default_s(format || DEFAULT_STRING_FORMAT)
  end
end