class RuboCop::AST::StrNode

def character_literal?

def character_literal?
  loc.respond_to?(:begin) && loc.begin && loc.begin.is?('?')
end