Method: ActionDoc::Generator#render_template
- Defined in:
- lib/actiondoc/generator.rb
#render_template(template, action) ⇒ Object
79 80 81 82 83 |
# File 'lib/actiondoc/generator.rb', line 79 def render_template(template, action) inputs_table = construct_inputs_table(action) model = TemplateModel.new(action, inputs_table) puts template.result(model.instance_eval { binding }) end |