Class: Presenter
- Inherits:
-
Object
- Object
- Presenter
- Includes:
- ActionView::Helpers::TextHelper
- Defined in:
- app/presenters/presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ Presenter
constructor
A new instance of Presenter.
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
#source ⇒ Object (readonly)
Returns the value of attribute source.
4 5 6 |
# File 'app/presenters/presenter.rb', line 4 def source @source end |