Class: Apress::Documentation::DependencyPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/apress/documentation/dependency_presenter.rb

Instance Method Summary collapse

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