Class: ActionPresenter::Base

Inherits:
Object
  • Object
show all
Includes:
Defaults::Timestamps, Utilities::Let
Defined in:
lib/action_presenter/base.rb

Instance Method Summary collapse

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