diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb index 953bd3fb1b18afa711e02df42054d205b88ced5c..b028df97eec957e89f6e3fa8bfa6baa097f999e3 100644 --- a/activesupport/lib/active_support/core_ext/object/duplicable.rb +++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb @@ -106,8 +106,8 @@ def duplicable? class BigDecimal # BigDecimals are duplicable: # - # BigDecimal.new("1.2").duplicable? # => true - # BigDecimal.new("1.2").dup # => # + # BigDecimal.new("1.2").duplicable? # => true + # BigDecimal.new("1.2").dup # => # def duplicable? true end @@ -130,8 +130,8 @@ class Complex # Complexes are not duplicable: # - # Complex(1).duplicable? # => false - # Complex(1).dup # => TypeError: can't copy Complex + # Complex(1).duplicable? # => false + # Complex(1).dup # => TypeError: can't copy Complex def duplicable? false end @@ -145,8 +145,8 @@ class Rational # Rationals are not duplicable: # - # Rational(1).duplicable? # => false - # Rational(1).dup # => TypeError: can't copy Rational + # Rational(1).duplicable? # => false + # Rational(1).dup # => TypeError: can't copy Rational def duplicable? false end