Class: FiForm::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/fi_form/renderer.rb

Direct Known Subclasses

DebugRenderer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template) ⇒ Renderer

Returns a new instance of Renderer.



5
6
7
# File 'lib/fi_form/renderer.rb', line 5

def initialize(template)
  @template = template
end

Instance Attribute Details

#templateObject (readonly)

Returns the value of attribute template.



4
5
6
# File 'lib/fi_form/renderer.rb', line 4

def template
  @template
end

Instance Method Details

#render(*args) ⇒ Object



9
10
11
# File 'lib/fi_form/renderer.rb', line 9

def render(*args)
  warn "Please Override render method"
end