From af2e39f3d5a0f0300fac21666b016d4cf21938b6 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 25 Mar 2017 19:55:28 +0900 Subject: Fix doc format for `duplicable?` [ci skip] --- .../lib/active_support/core_ext/object/duplicable.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb index 953bd3fb1b..b028df97ee 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 @@ require "bigdecimal" 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 -- cgit v1.2.3