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
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
# File 'lib/syntax_tree/node.rb', line 1029 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 |