Class: Fierce::Presenter

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view_model) ⇒ Presenter

Returns a new instance of Presenter.



5
6
7
# File 'lib/fierce/presenter.rb', line 5

def initialize(view_model)
  @view_model = view_model
end

Instance Attribute Details

#view_modelObject (readonly)

Returns the value of attribute view_model.



3
4
5
# File 'lib/fierce/presenter.rb', line 3

def view_model
  @view_model
end

Class Method Details

.delegations(*args) ⇒ Object



9
10
11
12
# File 'lib/fierce/presenter.rb', line 9

def self.delegations(*args)
  args.push({to: :view_model})
  delegate *args
end