Browse files

AS guide: class objects are not duplicable either

  • Loading branch information...
1 parent 4f59ebb commit f081fe267907750b91c9a5749c7a6c6c64460a3c @fxn fxn committed Jul 10, 2009
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
@@ -80,7 +80,7 @@ Active Support provides +duplicable?+ to programmatically query an object about
false.duplicable? # => false
-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.

0 comments on commit f081fe2

Please sign in to comment.