There's no such module
This commit is contained in:
parent
c1d1c4bca7
commit
24bacb3e95
@ -128,10 +128,10 @@ def dasherize
|
||||
|
||||
# Removes the module part from the constant expression in the string.
|
||||
#
|
||||
# 'ActiveRecord::CoreExtensions::String::Inflections'.demodulize # => "Inflections"
|
||||
# 'Inflections'.demodulize # => "Inflections"
|
||||
# '::Inflections'.demodulize # => "Inflections"
|
||||
# ''.demodulize # => ''
|
||||
# 'ActiveSupport::Inflector::Inflections'.demodulize # => "Inflections"
|
||||
# 'Inflections'.demodulize # => "Inflections"
|
||||
# '::Inflections'.demodulize # => "Inflections"
|
||||
# ''.demodulize # => ''
|
||||
#
|
||||
# See also +deconstantize+.
|
||||
def demodulize
|
||||
|
@ -198,10 +198,10 @@ def dasherize(underscored_word)
|
||||
|
||||
# Removes the module part from the expression in the string.
|
||||
#
|
||||
# demodulize('ActiveRecord::CoreExtensions::String::Inflections') # => "Inflections"
|
||||
# demodulize('Inflections') # => "Inflections"
|
||||
# demodulize('::Inflections') # => "Inflections"
|
||||
# demodulize('') # => ""
|
||||
# demodulize('ActiveSupport::Inflector::Inflections') # => "Inflections"
|
||||
# demodulize('Inflections') # => "Inflections"
|
||||
# demodulize('::Inflections') # => "Inflections"
|
||||
# demodulize('') # => ""
|
||||
#
|
||||
# See also #deconstantize.
|
||||
def demodulize(path)
|
||||
|
Loading…
Reference in New Issue
Block a user