Permalink
Browse files

AS guide: warns about the singleton classes of nil, true, and false a…

  • Loading branch information...
1 parent 93d8067 commit 4b4f69b9bfbd33556e23262f57cf6d944dfd9f63 @fxn fxn committed Mar 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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+.

0 comments on commit 4b4f69b

Please sign in to comment.