Class: SyntaxTree::ERB::ErbBlock
- 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
-
#initialize(opening:, location:, elements: nil, closing: nil) ⇒ ErbBlock
constructor
A new instance of ErbBlock.
Methods inherited from Block
#child_nodes, #deconstruct_keys, #new_line, #without_new_line
Methods inherited from Node
#format, #pretty_print, #skip?, #without_new_line
Constructor Details
#initialize(opening:, location:, elements: nil, closing: nil) ⇒ ErbBlock
Returns a new instance of ErbBlock.
358 359 360 361 362 363 364 365 |
# File 'lib/syntax_tree/erb/nodes.rb', line 358 def initialize(opening:, location:, elements: nil, closing: nil) super( opening: opening, location: location, elements: elements, closing: closing ) end |
Instance Method Details
#accept(visitor) ⇒ Object
367 368 369 |
# File 'lib/syntax_tree/erb/nodes.rb', line 367 def accept(visitor) visitor.visit_erb_block(self) end |