Class: JshintRuby::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/jshint_ruby/source.rb

Class Method Summary collapse

Class Method Details

.contentsObject



8
9
10
# File 'lib/jshint_ruby/source.rb', line 8

def self.contents
  @contents ||= File.read(path)
end

.pathObject



3
4
5
6
# File 'lib/jshint_ruby/source.rb', line 3

def self.path
  ENV['JSHINT_PATH'] ||
    File.expand_path("../../../vendor/jshint/jshint.js", __FILE__)
end