Class: Guard::Coffeelint
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Coffeelint
- Defined in:
- lib/guard/coffeelint.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Coffeelint
constructor
A new instance of Coffeelint.
- #run_all ⇒ Object
- #run_on_additions(paths) ⇒ Object
- #run_on_modifications(paths) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Coffeelint
Returns a new instance of Coffeelint.
9 10 11 12 13 |
# File 'lib/guard/coffeelint.rb', line 9 def initialize( = {}) super @config_file = [:config_file] @default_paths = [:paths] || ['.'] end |
Instance Method Details
#run_all ⇒ Object
27 28 29 |
# File 'lib/guard/coffeelint.rb', line 27 def run_all lint_and_report end |
#run_on_additions(paths) ⇒ Object
19 20 21 |
# File 'lib/guard/coffeelint.rb', line 19 def run_on_additions(paths) lint_and_report paths end |
#run_on_modifications(paths) ⇒ Object
23 24 25 |
# File 'lib/guard/coffeelint.rb', line 23 def run_on_modifications(paths) lint_and_report paths end |
#start ⇒ Object
15 16 17 |
# File 'lib/guard/coffeelint.rb', line 15 def start UI.info "Guard::Coffeelint linting against #{@config_file}" end |