Class: Babl::Operators::Nav::NavNode

Inherits:
Object
  • Object
show all
Defined in:
lib/babl/operators/nav.rb

Instance Method Summary collapse

Constructor Details

#initialize(through, node) ⇒ NavNode

Returns a new instance of NavNode.



20
21
22
23
# File 'lib/babl/operators/nav.rb', line 20

def initialize(through, node)
    @through = through
    @node = node
end

Instance Method Details

#dependenciesObject



25
26
27
# File 'lib/babl/operators/nav.rb', line 25

def dependencies
    { through => node.dependencies }
end

#documentationObject



29
30
31
# File 'lib/babl/operators/nav.rb', line 29

def documentation
    node.documentation
end

#pinned_dependenciesObject



33
34
35
# File 'lib/babl/operators/nav.rb', line 33

def pinned_dependencies
    node.pinned_dependencies
end

#render(ctx) ⇒ Object



37
38
39
# File 'lib/babl/operators/nav.rb', line 37

def render(ctx)
    node.render(ctx.move_forward_block(through) { navigate(ctx.object) })
end