Class: WPRoot::Compass
- Inherits:
-
Object
- Object
- WPRoot::Compass
- Defined in:
- lib/wproot/compass.rb
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(content) ⇒ Compass
constructor
A new instance of Compass.
Constructor Details
#initialize(content) ⇒ Compass
Returns a new instance of Compass.
3 4 5 |
# File 'lib/wproot/compass.rb', line 3 def initialize(content) @content = content end |
Instance Method Details
#compile ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/wproot/compass.rb', line 7 def compile IO.popen('sass --compass -s', 'w+') do |io| io.write(@content) io.close_write io.read end end |