Class: Sasstool::Renderer
- Inherits:
-
Object
- Object
- Sasstool::Renderer
- Extended by:
- Forwardable
- Defined in:
- lib/sasstool/renderer.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Renderer
constructor
A new instance of Renderer.
- #save(target_dir) ⇒ Object
Constructor Details
#initialize(path) ⇒ Renderer
Returns a new instance of Renderer.
9 10 11 |
# File 'lib/sasstool/renderer.rb', line 9 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/sasstool/renderer.rb', line 7 def path @path end |
Instance Method Details
#save(target_dir) ⇒ Object
13 14 15 16 17 |
# File 'lib/sasstool/renderer.rb', line 13 def save(target_dir) name = "#{target_dir}/#{basename}" File.write name, render File.write "#{name}.map", source_map end |