Class: SyntaxTree::ArrayLiteral::BreakableSpaceSeparator

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/node.rb

Overview

It’s very common to use seplist with ->(q) { q.breakable_space }. We wrap that pattern into an object to cut down on having to create a bunch of lambdas all over the place.

Instance Method Summary collapse

Instance Method Details

#call(q) ⇒ Object



1058
1059
1060
# File 'lib/syntax_tree/node.rb', line 1058

def call(q)
  q.breakable_space
end