Class: Sass::Exec::SassScss

Inherits:
Base
  • Object
show all
Defined in:
.ruby-sass/lib/sass/exec/sass_scss.rb

Overview

The `sass` and `scss` executables.

Constant Summary

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Base

#parse, #parse!, #to_s

Constructor Details

#initialize(args, default_syntax) ⇒ SassScss

Returns a new instance of SassScss

Parameters:

  • args (Array<String>)

    The command-line arguments



7
8
9
10
11
12
13
14
# File '.ruby-sass/lib/sass/exec/sass_scss.rb', line 7

def initialize(args, default_syntax)
  super(args)
  @options[:sourcemap] = :auto
  @options[:for_engine] = {
    :load_paths => default_sass_path
  }
  @default_syntax = default_syntax
end

Constructor Details

#initialize(args, default_syntax) ⇒ SassScss

Returns a new instance of SassScss

Parameters:

  • args (Array<String>)

    The command-line arguments



7
8
9
10
11
12
13
14
# File '.ruby-sass/lib/sass/exec/sass_scss.rb', line 7

def initialize(args, default_syntax)
  super(args)
  @options[:sourcemap] = :auto
  @options[:for_engine] = {
    :load_paths => default_sass_path
  }
  @default_syntax = default_syntax
end

Instance Attribute Details

#default_syntaxObject (readonly)

Returns the value of attribute default_syntax



4
5
6
# File '.ruby-sass/lib/sass/exec/sass_scss.rb', line 4

def default_syntax
  @default_syntax
end