Sha256: 661b8d763d913d7f12d87ff41e05c8e24a0156048dd7ebf2e3b81acae20155b8
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
honkster-haml-2.1.0 | lib/sass/script/string.rb |
honkster-haml-2.1.1 | lib/sass/script/string.rb |