Permalink
Browse files

prefer qualified constant "name" to "reference expression", much simpler

  • Loading branch information...
1 parent c809de8 commit c6b933faa91107a8213f0e8e151f8f1a72f55cdc @fxn fxn committed Oct 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/active_support_core_extensions.textile
View
4 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"

0 comments on commit c6b933f

Please sign in to comment.