Class: SyntaxTree::ERB::ErbIf
- Inherits:
-
ErbControl
- Object
- Node
- Block
- ErbControl
- SyntaxTree::ERB::ErbIf
- Defined in:
- lib/syntax_tree/erb/nodes.rb
Instance Attribute Summary
Attributes inherited from Block
#closing, #elements, #location, #opening
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
opening: ErbNode elements: [[HtmlNode | ErbNode | CharDataNode]] closing: [nil | ErbElsif | ErbElse].
Methods inherited from Block
#child_nodes, #deconstruct_keys, #initialize, #new_line, #without_new_line
Methods inherited from Node
#format, #pretty_print, #skip?, #without_new_line
Constructor Details
This class inherits a constructor from SyntaxTree::ERB::Block
Instance Method Details
#accept(visitor) ⇒ Object
opening: ErbNode elements: [[HtmlNode | ErbNode | CharDataNode]] closing: [nil | ErbElsif | ErbElse]
408 409 410 |
# File 'lib/syntax_tree/erb/nodes.rb', line 408 def accept(visitor) visitor.visit_erb_if(self) end |