diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-25 20:36:01 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-25 20:36:01 +0300 |
commit | 9e0f5ac7fc9a015bd8bd98ed32fa1e1653762196 (patch) | |
tree | 46d51bcba8e33403a8ec14b85d0b0ebf4322aaae /railties/guides | |
parent | bd91154fc47fa7445635014674d784ad4e69d212 (diff) | |
download | rails-9e0f5ac7fc9a015bd8bd98ed32fa1e1653762196.tar.gz rails-9e0f5ac7fc9a015bd8bd98ed32fa1e1653762196.tar.bz2 rails-9e0f5ac7fc9a015bd8bd98ed32fa1e1653762196.zip |
Module#name returns nil for anonymous class in ruby 1.9
Diffstat (limited to 'railties/guides')
-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 e912de974a..7cd241f412 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -822,7 +822,7 @@ M.name # => "M" N = Module.new N.name # => "N" -Module.new.name # => "" in 1.8, nil in 1.9 +Module.new.name # => nil </ruby> You can check whether a module has a name with the predicate +anonymous?+: |