class RuboCop::Cop::Style::SymbolArray
def build_bracketed_array(node)
def build_bracketed_array(node) syms = node.children.map do |c| if c.dsym_type? string_literal = to_string_literal(c.source) ":#{trim_string_interporation_escape_character(string_literal)}" else to_symbol_literal(c.value.to_s) end end "[#{syms.join(', ')}]" end