diff options
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 0a9374e028..a8410a8dd2 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -210,7 +210,7 @@ String.new.singleton_class # => #<Class:#<String:0x17a1d1c>> </ruby> WARNING: Fixnums and symbols have no singleton classes, +singleton_class+ -raises +TypeError+ on them. +raises +TypeError+ on them. Moreover, the singleton classes of +nil+, +true+, and +false+, are +NilClass+, +TrueClass+, and +FalseClass+, respectively. NOTE: Defined in +active_support/core_ext/object/singleton_class.rb+. |