module Gitlab::Help
def help_map
-
(Hash
-)
def help_map @help_map ||= actions.each_with_object({}) do |action, hsh| key = client.method(action) .owner.to_s.gsub(/Gitlab::(?:Client::)?/, '') hsh[key] ||= [] hsh[key] << action.to_s end end
(Hash)
-
def help_map @help_map ||= actions.each_with_object({}) do |action, hsh| key = client.method(action) .owner.to_s.gsub(/Gitlab::(?:Client::)?/, '') hsh[key] ||= [] hsh[key] << action.to_s end end