Class: Fierce::Presenter
- Inherits:
-
Object
- Object
- Fierce::Presenter
- Defined in:
- lib/fierce/presenter.rb
Instance Attribute Summary collapse
-
#view_model ⇒ Object
readonly
Returns the value of attribute view_model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(view_model) ⇒ Presenter
constructor
A new instance of Presenter.
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_model ⇒ Object (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 |