Class: SyntaxTree::ERB::ErbUnless

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

Instance Attribute Summary

Attributes inherited from Block

#closing, #elements, #location, #opening

Instance Method Summary collapse

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]



417
418
419
# File 'lib/syntax_tree/erb/nodes.rb', line 417

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