lib/sass/script/interpolation.rb in haml-edge-2.3.186 vs lib/sass/script/interpolation.rb in haml-edge-2.3.187

- old
+ new

@@ -7,19 +7,19 @@ @whitespace_before = wb @whitespace_after = wa end def inspect - "(interpolation #{@before.inspect} #{@mid.inspect} #{after.inspect})" + "(interpolation #{@before.inspect} #{@mid.inspect} #{@after.inspect})" end - def to_sass + def to_sass(opts = {}) res = "" - res << @before.to_sass if @before + res << @before.to_sass(opts) if @before res << ' ' if @before && @whitespace_before - res << '#{' << @mid.to_sass << '}' + res << '#{' << @mid.to_sass(opts) << '}' res << ' ' if @after && @whitespace_after - res << @after.to_sass if @after + res << @after.to_sass(opts) if @after res end def children [@before, @mid, @after].compact