Class: BasePresenter
- Inherits:
-
Object
- Object
- BasePresenter
- Defined in:
- lib/base_presenter.rb,
lib/base_presenter/version.rb,
lib/generators/base_presenter/install/install_generator.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ApplicationHelper, Generators
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object, template) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
Constructor Details
#initialize(object, template) ⇒ BasePresenter
Returns a new instance of BasePresenter.
6 7 8 9 |
# File 'lib/base_presenter.rb', line 6 def initialize(object, template) @object = object @template = template end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object (private)
18 19 20 |
# File 'lib/base_presenter.rb', line 18 def method_missing(*args, &block) @template.send(*args, &block) end |
Class Method Details
.initialize(object, template) ⇒ Object
11 12 13 14 |
# File 'lib/base_presenter.rb', line 11 def self.initialize(object, template) @@object = object @@template = template end |