module MyApiClient::GeneratorHelper

The helper module for source generators

Public Instance Methods

yeild_request_arguments() { |action, http_method, pathname| ... } click to toggle source
# File lib/generators/generator_helper.rb, line 6
def yeild_request_arguments
  requests.each do |request|
    http_method, pathname = request.split(':')
    action = "#{http_method}_#{pathname.tr('/', '_')}"
    yield action, http_method, pathname
  end
end