Class: Paradeiser::View
- Inherits:
-
Object
- Object
- Paradeiser::View
- Defined in:
- lib/paradeiser/view.rb
Instance Method Summary collapse
-
#initialize(model, method) ⇒ View
constructor
A new instance of View.
- #render(controller_binding) ⇒ Object
Constructor Details
#initialize(model, method) ⇒ View
Returns a new instance of View.
3 4 5 |
# File 'lib/paradeiser/view.rb', line 3 def initialize(model, method) @model, @method = model, method end |
Instance Method Details
#render(controller_binding) ⇒ Object
7 8 9 |
# File 'lib/paradeiser/view.rb', line 7 def render(controller_binding) template.result(controller_binding) end |