Class: ActionPresenter::Base
- Inherits:
-
Object
- Object
- ActionPresenter::Base
- Includes:
- Defaults::Timestamps, Utilities::Let
- Defined in:
- lib/action_presenter/base.rb
Instance Method Summary collapse
-
#initialize(object, template) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(object, template) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/action_presenter/base.rb', line 7 def initialize(object, template) @object, @template = object, template end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object (private)
20 21 22 |
# File 'lib/action_presenter/base.rb', line 20 def method_missing(*args, &block) h.send(*args, &block) end |