Class: Babl::Operators::Pin::GotoPinNode

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

Instance Method Summary collapse

Constructor Details

#initialize(node, ref) ⇒ GotoPinNode

Returns a new instance of GotoPinNode.



51
52
53
54
# File 'lib/babl/operators/pin.rb', line 51

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

Instance Method Details

#dependenciesObject



56
57
58
# File 'lib/babl/operators/pin.rb', line 56

def dependencies
    {}
end

#documentationObject



64
65
66
# File 'lib/babl/operators/pin.rb', line 64

def documentation
    node.documentation
end

#pinned_dependenciesObject



60
61
62
# File 'lib/babl/operators/pin.rb', line 60

def pinned_dependencies
    Babl::Utils::Hash.deep_merge(node.pinned_dependencies, ref => node.dependencies)
end

#render(ctx) ⇒ Object



68
69
70
# File 'lib/babl/operators/pin.rb', line 68

def render(ctx)
    node.render(ctx.goto_pin(ref))
end