Method: Sass::Script::Tree::Interpolation#to_sass

Defined in:
lib/sass/script/tree/interpolation.rb

#to_sass(opts = {})

See Also:



67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/sass/script/tree/interpolation.rb', line 67

def to_sass(opts = {})
  return to_quoted_equivalent.to_sass if deprecation == :immediate

  res = ""
  res << @before.to_sass(opts) if @before
  res << ' ' if @before && @whitespace_before
  res << '#{' unless @originally_text
  res << @mid.to_sass(opts)
  res << '}' unless @originally_text
  res << ' ' if @after && @whitespace_after
  res << @after.to_sass(opts) if @after
  res
end