Method: Prism::BeginNode#compact_child_nodes
- Defined in:
- lib/prism/node.rb
#compact_child_nodes ⇒ Object
def compact_child_nodes: () -> Array
1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/prism/node.rb', line 1339 def compact_child_nodes compact = [] #: Array[Prism::node] compact << statements if statements compact << rescue_clause if rescue_clause compact << else_clause if else_clause compact << ensure_clause if ensure_clause compact end |