Class: SyntaxTree::When::Separator
- Inherits:
-
Object
- Object
- SyntaxTree::When::Separator
- Defined in:
- lib/syntax_tree/node.rb
Overview
We have a special separator here for when clauses which causes them to fill as much of the line as possible as opposed to everything breaking into its own line as soon as you hit the print limit.
Instance Method Summary collapse
Instance Method Details
#call(q) ⇒ Object
11699 11700 11701 11702 11703 11704 |
# File 'lib/syntax_tree/node.rb', line 11699 def call(q) q.group do q.text(",") q.breakable_space end end |