aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-06-13 09:13:42 +0200
committerXavier Noria <fxn@hashref.com>2009-06-13 09:15:21 +0200
commit0c70bf373c1ac79997cecee0de3a88716a9dd0e2 (patch)
tree5f6187a0c125a71bab6f452f8a1ffa8fc55ca1d9 /railties/guides/source
parentfe0cf9213ce227730ece1b92f9828dcc6ad43977 (diff)
downloadrails-0c70bf373c1ac79997cecee0de3a88716a9dd0e2.tar.gz
rails-0c70bf373c1ac79997cecee0de3a88716a9dd0e2.tar.bz2
rails-0c70bf373c1ac79997cecee0de3a88716a9dd0e2.zip
AS guide: adds another example to Object#metaclass
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/active_support_overview.textile3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile
index a88432dc3b..525a1654f0 100644
--- a/railties/guides/source/active_support_overview.textile
+++ b/railties/guides/source/active_support_overview.textile
@@ -56,7 +56,8 @@ h4. +metaclass+
The method +metaclass+ returns the singleton class on any object:
<ruby>
-String.metaclass # => #<Class:String>
+String.metaclass # => #<Class:String>
+String.new.metaclass # => #<Class:#<String:0x17a1d1c>>
</ruby>
h4. +class_eval(*args, &block)+