class RuboCop::AST::NodePattern::LexerRex

def scanner_class

def scanner_class
  StringScanner
end unless instance_methods(false).map(&:to_s).include?("scanner_class")