1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Get rid of some now-useless interpolation code in Script::String.

This commit is contained in:
Nathan Weizenbaum 2009-04-24 20:19:06 -07:00
parent d97a5c7c4a
commit d39d2eba13

View file

@ -2,15 +2,6 @@ require 'sass/script/literal'
module Sass::Script
class String < Literal # :nodoc:
INTERPOLATION = /(^|[^\\])\#\{([^}]*)\}/
#TODO pass line & char context to perform
def perform(environment)
interpolated = @value.gsub(INTERPOLATION) do |match|
"#{$1}#{Sass::Script.resolve($2, 0, 0, environment)}"
end
Sass::Script::String.new(interpolated)
end
def to_s
@value
end