Class: ApiTaster::FormBuilder

Inherits:
AbstractController::Base
  • Object
show all
Includes:
AbstractController::Rendering, ActionView::Context, ActionView::Helpers::CaptureHelper, ActionView::Layouts
Defined in:
lib/api_taster/form_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ FormBuilder

Returns a new instance of FormBuilder.



10
11
12
13
14
# File 'lib/api_taster/form_builder.rb', line 10

def initialize(params)
  flush_output_buffer
  @_buffer = ''
  add_to_buffer(params)
end

Instance Method Details

#htmlObject



16
17
18
# File 'lib/api_taster/form_builder.rb', line 16

def html
  "<legend class=\"hero-legend\"></legend>#{@_buffer}"
end