aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-07-11 01:11:55 +0200
committerXavier Noria <fxn@hashref.com>2009-07-11 01:11:55 +0200
commitf081fe267907750b91c9a5749c7a6c6c64460a3c (patch)
tree973cf898256c5b7c65ae1b66f8cb1c4f3f89d58f /railties
parent4f59ebb1a6be7d3f589555e5d943ba3303b4efc0 (diff)
downloadrails-f081fe267907750b91c9a5749c7a6c6c64460a3c.tar.gz
rails-f081fe267907750b91c9a5749c7a6c6c64460a3c.tar.bz2
rails-f081fe267907750b91c9a5749c7a6c6c64460a3c.zip
AS guide: class objects are not duplicable either
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/active_support_overview.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile
index 30a593a0d7..2248ba33c3 100644
--- a/railties/guides/source/active_support_overview.textile
+++ b/railties/guides/source/active_support_overview.textile
@@ -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.