class RuboCop::AST::PairNode

def hash_rocket?

Returns:
  • (Boolean) - whether this `pair` uses a hash rocket delimiter
def hash_rocket?
  loc.operator.is?(HASH_ROCKET)
end