class RSpec::Core::Source::Cache

@private

Attributes

syntax_highlighter[R]

Public Class Methods

new(configuration) click to toggle source
# File lib/rspec/core/source.rb, line 65
def initialize(configuration)
  @sources_by_path = {}
  @syntax_highlighter = SyntaxHighlighter.new(configuration)
end

Public Instance Methods

source_from_file(path) click to toggle source
# File lib/rspec/core/source.rb, line 70
def source_from_file(path)
  @sources_by_path[path] ||= Source.from_file(path)
end