class RuboCop::AST::PairNode

def colon?

Returns:
  • (Boolean) - whether this `pair` uses a colon delimiter
def colon?
  loc.operator.is?(COLON)
end