class RuboCop::AST::PairNode

def delimiter(*deprecated, with_spacing: deprecated.first)

Returns:
  • (String) - the delimiter of the `pair`

Parameters:
  • with_spacing (Boolean) -- whether to include spacing
def delimiter(*deprecated, with_spacing: deprecated.first)
  if with_spacing
    hash_rocket? ? SPACED_HASH_ROCKET : SPACED_COLON
  else
    hash_rocket? ? HASH_ROCKET : COLON
  end
end