diff options
author | Xavier Noria <fxn@hashref.com> | 2010-04-05 12:25:02 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-04-05 12:25:02 -0700 |
commit | 081963af480e94d7668ba334ac2c7faaa03c2b99 (patch) | |
tree | a28a5a5c03a6c9169b66b1bfda0246c0c401edce /railties/guides | |
parent | bb4cf38fa63ea891f0d13f6a43ada692787e2cf3 (diff) | |
download | rails-081963af480e94d7668ba334ac2c7faaa03c2b99.tar.gz rails-081963af480e94d7668ba334ac2c7faaa03c2b99.tar.bz2 rails-081963af480e94d7668ba334ac2c7faaa03c2b99.zip |
AS guide: updates definition file for singleton_class and class_eval
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index b41b16b728..398d2b2392 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -212,7 +212,7 @@ String.new.singleton_class # => #<Class:#<String:0x17a1d1c>> WARNING: Fixnums and symbols have no singleton classes, +singleton_class+ 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+. +NOTE: Defined in +active_support/core_ext/kernel/singleton_class.rb+. h4. +class_eval(*args, &block)+ @@ -233,7 +233,7 @@ class Proc end </ruby> -NOTE: Defined in +active_support/core_ext/object/singleton_class.rb+. +NOTE: Defined in +active_support/core_ext/kernel/singleton_class.rb+. h4. +acts_like?(duck)+ |