From 45faaee8746ee23e399743707ecf264159afb81a Mon Sep 17 00:00:00 2001 From: Evan Farrar Date: Wed, 18 May 2011 00:26:35 -0400 Subject: Prevent duplicable comments from being the opening paragraph for Object docs --- activesupport/lib/active_support/core_ext/object/duplicable.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/lib/active_support/core_ext/object/duplicable.rb') diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb index 02cb5dfee7..9d044eba71 100644 --- a/activesupport/lib/active_support/core_ext/object/duplicable.rb +++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb @@ -1,3 +1,4 @@ +#-- # Most objects are cloneable, but not all. For example you can't dup +nil+: # # nil.dup # => TypeError: can't dup NilClass @@ -14,6 +15,7 @@ # # That's why we hardcode the following cases and check duplicable? instead of # using that rescue idiom. +#++ class Object # Can you safely dup this object? # -- cgit v1.2.3