Class: FiForm::Renderer
- Inherits:
-
Object
- Object
- FiForm::Renderer
- Defined in:
- lib/fi_form/renderer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#f ⇒ Object
readonly
Returns the value of attribute f.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template, f: nil) ⇒ Renderer
constructor
A new instance of Renderer.
- #render(*args) ⇒ Object
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
#f ⇒ Object (readonly)
Returns the value of attribute f.
4 5 6 |
# File 'lib/fi_form/renderer.rb', line 4 def f @f end |
#template ⇒ Object (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 |