Class: TypeStation::BasePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/type_station/base_presenter.rb

Direct Known Subclasses

ContentPresenter, Presenter

Instance Method Summary collapse

Constructor Details

#initialize(object, template, options = {}) ⇒ BasePresenter

Returns a new instance of BasePresenter.



4
5
6
7
8
# File 'app/presenters/type_station/base_presenter.rb', line 4

def initialize(object, template, options = {})
  @object = object
  @template = template
  @options = options
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object (private)



26
27
28
# File 'app/presenters/type_station/base_presenter.rb', line 26

def method_missing(*args, &block)
  @template.send(*args, &block)
end