class method
self.extract_scope
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.extract_scope(msgid, separator)
No documentation comment.
Parameters
-
msgidreq -
separatorreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/gettext.rb, line 20
def extract_scope(msgid, separator)
scope = msgid.to_s.split(separator)
msgid = scope.pop
[scope, msgid]
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/gettext.rb line 20
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Gettext