From f081fe267907750b91c9a5749c7a6c6c64460a3c Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 11 Jul 2009 01:11:55 +0200 Subject: AS guide: class objects are not duplicable either --- railties/guides/source/active_support_overview.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides/source') 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 -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. -- cgit v1.2.3