edge badge
Methods
D
T
Constants
DEFAULT_STRING_FORMAT = 'F'
 
Instance Public methods
duplicable?()

BigDecimals are duplicable:

BigDecimal.new(“1.2”).duplicable? # => true BigDecimal.new(“1.2”).dup # => #<BigDecimal:…,'0.12E1',18(18)>

# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 85
def duplicable?
  true
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