Class: ActionDoc::TemplateModel
- Inherits:
-
Struct
- Object
- Struct
- ActionDoc::TemplateModel
- Defined in:
- lib/actiondoc/generator.rb
Overview
For ERB binding
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#inputs_table ⇒ Object
Returns the value of attribute inputs_table.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
109 110 111 |
# File 'lib/actiondoc/generator.rb', line 109 def action @action end |
#inputs_table ⇒ Object
Returns the value of attribute inputs_table
109 110 111 |
# File 'lib/actiondoc/generator.rb', line 109 def inputs_table @inputs_table end |
Instance Method Details
#inputs_section ⇒ Object
110 111 112 113 114 |
# File 'lib/actiondoc/generator.rb', line 110 def inputs_section return NO_INPUTS if inputs_table.nil? || inputs_table.empty? ERB.new(INPUTS_SECTION_ERB, trim_mode: '-').result(binding) end |