Class: SassC::Dependency
- Inherits:
-
Object
- Object
- SassC::Dependency
- Defined in:
- lib/sassc/dependency.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename) ⇒ Dependency
constructor
A new instance of Dependency.
Constructor Details
#initialize(filename) ⇒ Dependency
Returns a new instance of Dependency.
6 7 8 9 |
# File 'lib/sassc/dependency.rb', line 6 def initialize(filename) @filename = filename @options = { filename: @filename } end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
3 4 5 |
# File 'lib/sassc/dependency.rb', line 3 def filename @filename end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/sassc/dependency.rb', line 4 def @options end |
Class Method Details
.from_filenames(filenames) ⇒ Object
11 12 13 |
# File 'lib/sassc/dependency.rb', line 11 def self.from_filenames(filenames) filenames.map { |f| new(f) } end |