Module: SyntaxTree::AssignFormatting
- Defined in:
- lib/syntax_tree/node.rb
Overview
Determins if the following value should be indented or not.
Class Method Summary collapse
Class Method Details
.skip_indent?(value) ⇒ Boolean
1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 |
# File 'lib/syntax_tree/node.rb', line 1304 def self.skip_indent?(value) (value.is_a?(Call) && skip_indent?(value.receiver)) || [ ArrayLiteral, HashLiteral, Heredoc, Lambda, QSymbols, QWords, Symbols, Words ].include?(value.class) end |