Class: Simpre::Presenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/simpre/presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(model, view) ⇒ Presenter

Returns a new instance of Presenter.



5
6
7
8
9
# File 'lib/simpre/presenter.rb', line 5

def initialize(model, view)
  @model = model
  @view = view
  super(@model)
end

Instance Method Details

#hObject



11
12
13
# File 'lib/simpre/presenter.rb', line 11

def h
  @view
end