class RuboCop::ProcessedSource

def initialize(source, ruby_version, path = nil)

def initialize(source, ruby_version, path = nil)
  # In Ruby 2, source code encoding defaults to UTF-8. We follow the same
  # principle regardless of which Ruby version we're running under.
  # Encoding comments will override this setting.
  unless source.encoding == Encoding::UTF_8
    source.force_encoding(Encoding::UTF_8)
  end
  @raw_source = source
  @path = path
  @diagnostics = []
  @ruby_version = ruby_version
  parse(source, ruby_version)
end