lib/coffeelint.rb in coffeelint-0.3.0 vs lib/coffeelint.rb in coffeelint-0.4.0
- old
+ new
@@ -5,9 +5,13 @@
require 'json'
module Coffeelint
require 'coffeelint/railtie' if defined?(Rails::Railtie)
+ def self.set_path(custom_path)
+ @path = custom_path
+ end
+
def self.path()
@path ||= File.expand_path('../../coffeelint/lib/coffeelint.js', __FILE__)
end
def self.colorize(str, color_code)