Class: CommitFilter::Presenter
- Inherits:
-
Object
- Object
- CommitFilter::Presenter
- Defined in:
- app/presenters/commit_filter/presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(working_view) ⇒ Presenter
constructor
A new instance of Presenter.
Constructor Details
#initialize(working_view) ⇒ Presenter
Returns a new instance of Presenter.
4 5 6 |
# File 'app/presenters/commit_filter/presenter.rb', line 4 def initialize(working_view) self.view = working_view end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object (private)
10 11 12 |
# File 'app/presenters/commit_filter/presenter.rb', line 10 def method_missing(*args, &block) view.send(*args, &block) end |
Instance Attribute Details
#view ⇒ Object
Returns the value of attribute view.
2 3 4 |
# File 'app/presenters/commit_filter/presenter.rb', line 2 def view @view end |