Class: SassC::Importer::Import

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, source: nil, source_map_path: nil) ⇒ Import

Returns a new instance of Import.



20
21
22
23
24
# File 'lib/sassc/importer.rb', line 20

def initialize(path, source: nil, source_map_path: nil)
  @path = path
  @source = source
  @source_map_path = source_map_path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



18
19
20
# File 'lib/sassc/importer.rb', line 18

def path
  @path
end

#sourceObject

Returns the value of attribute source.



18
19
20
# File 'lib/sassc/importer.rb', line 18

def source
  @source
end

#source_map_pathObject

Returns the value of attribute source_map_path.



18
19
20
# File 'lib/sassc/importer.rb', line 18

def source_map_path
  @source_map_path
end

Instance Method Details

#to_sObject



26
27
28
# File 'lib/sassc/importer.rb', line 26

def to_s
  "Import: #{path} #{source} #{source_map_path}"
end