Method: Gitlab::Help.namespace
- Defined in:
- lib/gitlab/help.rb
permalink .namespace(cmd) ⇒ Object
Returns full namespace of a command (e.g. Gitlab::Client::Branches.cmd)
74 75 76 77 78 |
# File 'lib/gitlab/help.rb', line 74 def namespace(cmd) method_owners.select { |method| method[:name] == cmd } .map { |method| "#{method[:owner]}.#{method[:name]}" } .shift end |