module Babl::Operators::Parent::DSL
Public Instance Methods
parent()
click to toggle source
Navigate to the parent of the current object.
# File lib/babl/operators/parent.rb, line 9 def parent construct_node { |node| Nodes::Parent.new(node) }.reset_key.reset_continue end
Protected Instance Methods
validate(tree)
click to toggle source
Calls superclass method
# File lib/babl/operators/parent.rb, line 15 def validate(tree) if tree.dependencies.key? Nodes::Parent::PARENT_MARKER raise Errors::InvalidTemplate, 'Out of context parent dependency' end super end