Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AS guide: class objects are not duplicable either

  • Loading branch information...
commit f081fe267907750b91c9a5749c7a6c6c64460a3c 1 parent 4f59ebb
Xavier Noria fxn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/active_support_overview.textile
2  railties/guides/source/active_support_overview.textile
View
@@ -80,7 +80,7 @@ Active Support provides +duplicable?+ to programmatically query an object about
false.duplicable? # => false
</ruby>
-By definition all objects are +duplicable?+ except +nil+, +false+, +true+, symbols, and numbers.
+By definition all objects are +duplicable?+ except +nil+, +false+, +true+, symbols, numbers, and class objects.
WARNING. Using +duplicable?+ is discouraged because it depends on a hard-coded list. Classes have means to disallow duplication like removing +dup+ and +clone+ or raising exceptions from them, only +rescue+ can tell.
Please sign in to comment.
Something went wrong with that request. Please try again.