method

namespace

rails latest stable - Class: Rails::Command::Base
namespace(name = nil)
public

Convenience method to get the namespace from the class name. It’s the same as Thor default except that the Command at the end of the class is removed.