Class: SassC::Dependency

Inherits:
Object
  • Object
show all
Defined in:
lib/sassc/dependency.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#filenameObject (readonly)

Returns the value of attribute filename.



5
6
7
# File 'lib/sassc/dependency.rb', line 5

def filename
  @filename
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/sassc/dependency.rb', line 6

def options
  @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