class method
self.split_namespace
Ruby on Rails 8.0.4
Since v7.1.6 PrivateSignature
self.split_namespace(namespace)
No documentation comment.
Parameters
-
namespacereq
Source
# File railties/lib/rails/command.rb, line 125
def split_namespace(namespace)
case namespace
when /^(.+):(\w+)$/
[$1, $2]
when ""
["help", "help"]
when HELP_MAPPINGS, "help"
["help", "help_extended"]
when VERSION_MAPPINGS
["version", "version"]
else
[namespace, namespace]
end
end
Defined in railties/lib/rails/command.rb line 125
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Command