Skip to content
This repository
Browse code

Prevent duplicable comments from being the opening paragraph for Obje…

…ct docs
  • Loading branch information...
commit 45faaee8746ee23e399743707ecf264159afb81a 1 parent 84e541e
Evan Farrar evanfarrar authored
2  activesupport/lib/active_support/core_ext/object/duplicable.rb
... ... @@ -1,3 +1,4 @@
  1 +#--
1 2 # Most objects are cloneable, but not all. For example you can't dup +nil+:
2 3 #
3 4 # nil.dup # => TypeError: can't dup NilClass
@@ -14,6 +15,7 @@
14 15 #
15 16 # That's why we hardcode the following cases and check duplicable? instead of
16 17 # using that rescue idiom.
  18 +#++
17 19 class Object
18 20 # Can you safely dup this object?
19 21 #

0 comments on commit 45faaee

Please sign in to comment.
Something went wrong with that request. Please try again.