Class: SyntaxTree::ERB::ErbYield
- Defined in:
- lib/syntax_tree/erb/nodes.rb
Constant Summary collapse
- PLACEHOLDER =
"qqqqy"
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object
-
#initialize(new_line:, location:) ⇒ ErbYield
constructor
A new instance of ErbYield.
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_nodes ⇒ Object
519 520 521 |
# File 'lib/syntax_tree/erb/nodes.rb', line 519 def child_nodes [] end |