Method: SyntaxTree::Assoc#format

Defined in:
lib/syntax_tree.rb

#format(q) ⇒ Object



1898
1899
1900
1901
1902
1903
1904
# File 'lib/syntax_tree.rb', line 1898

def format(q)
  if value.is_a?(HashLiteral)
    format_contents(q)
  else
    q.group { format_contents(q) }
  end
end