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
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 |
# File 'lib/syntax_tree/node.rb', line 1265 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 |