Class: SyntaxTree::ERB::ErbYield

Inherits:
Element show all
Defined in:
lib/syntax_tree/erb/nodes.rb

Constant Summary collapse

PLACEHOLDER =
"qqqqy"

Instance Attribute Summary

Attributes inherited from Element

#location, #new_line

Instance Method Summary collapse

Methods inherited from Element

#deconstruct_keys, #without_new_line

Methods inherited from Node

#format, #pretty_print, #skip?, #without_new_line

Constructor Details

#initialize(new_line:, location:) ⇒ ErbYield

Returns a new instance of ErbYield.



511
512
513
# File 'lib/syntax_tree/erb/nodes.rb', line 511

def initialize(new_line:, location:)
  super(new_line: new_line, location: location)
end

Instance Method Details

#accept(visitor) ⇒ Object



515
516
517
# File 'lib/syntax_tree/erb/nodes.rb', line 515

def accept(visitor)
  visitor.visit_erb_yield(self)
end

#child_nodesObject



519
520
521
# File 'lib/syntax_tree/erb/nodes.rb', line 519

def child_nodes
  []
end