Class: ActionDoc::TemplateModel

Inherits:
Struct
  • Object
show all
Defined in:
lib/actiondoc/generator.rb

Overview

For ERB binding

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



109
110
111
# File 'lib/actiondoc/generator.rb', line 109

def action
  @action
end

#inputs_tableObject

Returns the value of attribute inputs_table

Returns:

  • (Object)

    the current value of inputs_table



109
110
111
# File 'lib/actiondoc/generator.rb', line 109

def inputs_table
  @inputs_table
end

Instance Method Details

#inputs_sectionObject



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