Class: Flexite::DiffPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Flexite::DiffPresenter
- Defined in:
- app/presenters/flexite/diff_presenter.rb
Instance Method Summary collapse
-
#initialize(template, type, depth, *changes) ⇒ DiffPresenter
constructor
A new instance of DiffPresenter.
- #to_view ⇒ Object
Constructor Details
#initialize(template, type, depth, *changes) ⇒ DiffPresenter
Returns a new instance of DiffPresenter.
3 4 5 6 7 8 |
# File 'app/presenters/flexite/diff_presenter.rb', line 3 def initialize(template, type, depth, *changes) @type = type @depth = depth @changes = changes super(template) end |
Instance Method Details
#to_view ⇒ Object
10 11 12 |
# File 'app/presenters/flexite/diff_presenter.rb', line 10 def to_view "PATH: #{@depth}\r#{t("labels.diff.operations.#{@type}") % prettified}" end |