Class: CommitFilter::Presenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/commit_filter/presenter.rb

Direct Known Subclasses

ApplicationPresenter

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#viewObject

Returns the value of attribute view.



2
3
4
# File 'app/presenters/commit_filter/presenter.rb', line 2

def view
  @view
end