diff options
author | Xavier Noria <fxn@hashref.com> | 2011-10-30 02:24:30 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-10-30 02:25:25 -0700 |
commit | c6b933faa91107a8213f0e8e151f8f1a72f55cdc (patch) | |
tree | b03795dfd17e169e1c010cab041bdf4f04d4324e /railties/guides/source/active_support_core_extensions.textile | |
parent | c809de829198d1a07bd755b79e26ac234374977e (diff) | |
download | rails-c6b933faa91107a8213f0e8e151f8f1a72f55cdc.tar.gz rails-c6b933faa91107a8213f0e8e151f8f1a72f55cdc.tar.bz2 rails-c6b933faa91107a8213f0e8e151f8f1a72f55cdc.zip |
prefer qualified constant "name" to "reference expression", much simpler
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-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 0941953d1c..ff6c5f967f 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -729,7 +729,7 @@ h5. Qualified Constant Names The standard methods +const_defined?+, +const_get+ , and +const_set+ accept bare constant names. Active Support extends this API to be able to pass -relative qualified constant reference expressions. +relative qualified constant names. The new methods are +qualified_const_defined?+, +qualified_const_get+, and +qualified_const_set+. Their arguments are assumed to be qualified constant @@ -1655,7 +1655,7 @@ NOTE: Defined in +active_support/core_ext/string/inflections.rb+. h5. +demodulize+ -Given a string with a qualified constant reference expression, +demodulize+ returns the very constant name, that is, the rightmost part of it: +Given a string with a qualified constant name, +demodulize+ returns the very constant name, that is, the rightmost part of it: <ruby> "Product".demodulize # => "Product" |