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.
8 9 10 11 |
# File 'lib/sassc/dependency.rb', line 8 def initialize(filename) @filename = filename @options = { filename: @filename } end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/sassc/dependency.rb', line 5 def filename @filename end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/sassc/dependency.rb', line 6 def @options end |
Class Method Details
.from_filenames(filenames) ⇒ Object
13 14 15 |
# File 'lib/sassc/dependency.rb', line 13 def self.from_filenames(filenames) filenames.map { |f| new(f) } end |