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, f: nil) ⇒ Renderer

Returns a new instance of Renderer.



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

def initialize(template, f: nil)
  @template = template
  @f = f
end

Instance Attribute Details

#fObject (readonly)

Returns the value of attribute f.



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

def f
  @f
end

#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



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

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