Class: Presenter

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TextHelper
Defined in:
app/presenters/presenter.rb

Direct Known Subclasses

PagePresenter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Presenter

Returns a new instance of Presenter.



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

def initialize(source)
  @source = source
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



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

def source
  @source
end