Module: MyApiClient::GeneratorHelper
- Defined in:
- lib/generators/generator_helper.rb
Overview
The helper module for source generators
Instance Method Summary collapse
Instance Method Details
#yeild_request_arguments ⇒ Object
6 7 8 9 10 11 12 |
# 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 |