method
split_namespace
v8.1.1 -
Show latest stable
- Class:
Rails::Command
split_namespace(namespace)private
No documentation available.
# 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