提交 e79d4784 编写于 作者: J Jeremy Kemper

Qualify Inflector in rdoc examples also. [#356 state:resolved]

上级 e2c49e6a
......@@ -15,7 +15,7 @@ module Inflector
# A singleton instance of this class is yielded by Inflector.inflections, which can then be used to specify additional
# inflection rules. Examples:
#
# Inflector.inflections do |inflect|
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1\2en'
# inflect.singular /^(ox)en/i, '\1'
#
......@@ -97,7 +97,7 @@ def clear(scope = :all)
# inflector rules.
#
# Example:
# Inflector.inflections do |inflect|
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.uncountable "rails"
# end
def inflections
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册