Class: Guard::Sass::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/sass/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(watchers, formatter, options = {}) ⇒ Runner

Returns a new instance of Runner.

Parameters:

  • watchers (Array<Guard::Watcher>)
  • formatter (Guard::Sass::Formatter)
  • options (Hash) (defaults to: {})

    See Guard::Sass::DEFAULTS for available options


14
15
16
17
18
# File 'lib/guard/sass/runner.rb', line 14

def initialize(watchers, formatter, options={})
  @watchers  = watchers
  @formatter = formatter
  @options   = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options


9
10
11
# File 'lib/guard/sass/runner.rb', line 9

def options
  @options
end

Instance Method Details

#run(files) ⇒ Array<Array,Boolean>

Parameters:

  • files (Array<String>)

Returns:

  • (Array<Array,Boolean>)

22
23
24
25
# File 'lib/guard/sass/runner.rb', line 22

def run(files)
  changed_files, errors = compile_files(files)
  [changed_files, errors.empty?]
end