Class: Babl::Operators::Pin::GotoPinNode
- Inherits:
-
Object
- Object
- Babl::Operators::Pin::GotoPinNode
- Defined in:
- lib/babl/operators/pin.rb
Instance Method Summary collapse
- #dependencies ⇒ Object
- #documentation ⇒ Object
-
#initialize(node, ref) ⇒ GotoPinNode
constructor
A new instance of GotoPinNode.
- #pinned_dependencies ⇒ Object
- #render(ctx) ⇒ Object
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
#dependencies ⇒ Object
56 57 58 |
# File 'lib/babl/operators/pin.rb', line 56 def dependencies {} end |
#documentation ⇒ Object
64 65 66 |
# File 'lib/babl/operators/pin.rb', line 64 def documentation node.documentation end |
#pinned_dependencies ⇒ Object
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 |