Class: StringPresenter
- Inherits:
-
Object
- Object
- StringPresenter
- Includes:
- ActionView::Helpers::TextHelper
- Defined in:
- app/presenters/string_presenter.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ StringPresenter
constructor
A new instance of StringPresenter.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ StringPresenter
Returns a new instance of StringPresenter.
6 7 8 |
# File 'app/presenters/string_presenter.rb', line 6 def initialize(value) @value = value end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'app/presenters/string_presenter.rb', line 10 def to_s @value end |