Class: Paradeiser::View

Inherits:
Object
  • Object
show all
Defined in:
lib/paradeiser/view.rb

Instance Method Summary collapse

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