Class: Apress::Documentation::DependencyPresenter
- Inherits:
-
Object
- Object
- Apress::Documentation::DependencyPresenter
- Defined in:
- app/presenters/apress/documentation/dependency_presenter.rb
Instance Method Summary collapse
-
#initialize(view, document) ⇒ DependencyPresenter
constructor
A new instance of DependencyPresenter.
- #render_deps(reverse: false) ⇒ Object
Constructor Details
#initialize(view, document) ⇒ DependencyPresenter
Returns a new instance of DependencyPresenter.
4 5 6 7 |
# File 'app/presenters/apress/documentation/dependency_presenter.rb', line 4 def initialize(view, document) @view = view @document = document end |
Instance Method Details
#render_deps(reverse: false) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/presenters/apress/documentation/dependency_presenter.rb', line 9 def render_deps(reverse: false) @view.render( 'apress/documentation/presenters/dependency_presenter/dependencies', dependencies: dependencies(reverse: reverse), all_dependencies: all_dependencies(reverse: reverse), current_document: @document ) end |