aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-25 19:55:28 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-25 19:55:28 +0900
commitaf2e39f3d5a0f0300fac21666b016d4cf21938b6 (patch)
tree195d883fa45f1f9c18a45af773259b984159439f /activesupport
parent684de497a8c60c9cb367ff2e3657fb785c2a35ea (diff)
downloadrails-af2e39f3d5a0f0300fac21666b016d4cf21938b6.tar.gz
rails-af2e39f3d5a0f0300fac21666b016d4cf21938b6.tar.bz2
rails-af2e39f3d5a0f0300fac21666b016d4cf21938b6.zip
Fix doc format for `duplicable?` [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/object/duplicable.rb12
1 files changed, 6 insertions, 6 deletions
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:...,'0.12E1',18(18)>
+ # BigDecimal.new("1.2").duplicable? # => true
+ # BigDecimal.new("1.2").dup # => #<BigDecimal:...,'0.12E1',18(18)>
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