module SyntaxTree::AssignFormatting

Determins if the following value should be indented or not.

Public Class Methods

skip_indent?(value) click to toggle source
# File lib/syntax_tree/node.rb, line 1397
def self.skip_indent?(value)
  case value
  when ArrayLiteral, HashLiteral, Heredoc, Lambda, QSymbols, QWords,
       Symbols, Words
    true
  when CallNode
    skip_indent?(value.receiver)
  when DynaSymbol
    value.quote.start_with?("%s")
  else
    false
  end
end