Class: Georgia::Presenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/georgia/presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Presenter

Returns a new instance of Presenter.



6
7
8
# File 'app/presenters/georgia/presenter.rb', line 6

def initialize *args
  @view_context = args.first
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



12
13
14
# File 'app/presenters/georgia/presenter.rb', line 12

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

Instance Attribute Details

#view_contextObject (readonly)

Returns the value of attribute view_context.



4
5
6
# File 'app/presenters/georgia/presenter.rb', line 4

def view_context
  @view_context
end