Class: Exhibit::Presenter

Inherits:
Object
  • Object
show all
Defined in:
lib/exhibit/presenter.rb,
lib/generators/exhibit/templates/exhibit_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, template) ⇒ Presenter

Returns a new instance of Presenter.



3
4
5
6
# File 'lib/exhibit/presenter.rb', line 3

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)



16
17
18
# File 'lib/exhibit/presenter.rb', line 16

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