Class: SyntaxTree::ERB::ErbCase

Inherits:
ErbControl 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 | ErbCaseWhen | ErbElse | ErbEnd]



450
451
452
# File 'lib/syntax_tree/erb/nodes.rb', line 450

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