Class: JshintRuby::Source
- Inherits:
-
Object
- Object
- JshintRuby::Source
- Defined in:
- lib/jshint_ruby/source.rb
Class Method Summary collapse
Class Method Details
.contents ⇒ Object
8 9 10 |
# File 'lib/jshint_ruby/source.rb', line 8 def self.contents @contents ||= File.read(path) end |
.path ⇒ Object
3 4 5 6 |
# File 'lib/jshint_ruby/source.rb', line 3 def self.path ENV['JSHINT_PATH'] || File.("../../../vendor/jshint/jshint.js", __FILE__) end |