Class: Simpre::Presenter

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

Instance Method Summary collapse

Methods included from Helper

#decorate

Constructor Details

#initialize(model, view) ⇒ Presenter

Returns a new instance of Presenter.



7
8
9
10
11
# File 'lib/simpre/presenter.rb', line 7

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

Instance Method Details

#hObject



13
14
15
# File 'lib/simpre/presenter.rb', line 13

def h
  @view
end