haml-edge 2.3.189 → 2.3.190

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.189
1
+ 2.3.190
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.189
1
+ 2.3.190
@@ -0,0 +1,36 @@
1
+ module Sass::Script
2
+ class StringInterpolation < Node
3
+ def initialize(before, mid, after)
4
+ @before = before
5
+ @mid = mid
6
+ @after = after
7
+ end
8
+
9
+ def inspect
10
+ "(string_interpolation #{@before.inspect} #{@mid.inspect} #{@after.inspect})"
11
+ end
12
+
13
+ def to_sass(opts = {})
14
+ res = ""
15
+ res << @before.to_sass(opts)[0...-1]
16
+ res << '#{' << @mid.to_sass(opts) << '}'
17
+ res << @after.to_sass(opts)[1..-1]
18
+ res
19
+ end
20
+
21
+ def children
22
+ [@before, @mid, @after].compact
23
+ end
24
+
25
+ protected
26
+
27
+ def _perform(environment)
28
+ res = ""
29
+ res << @before.perform(environment).value
30
+ val = @mid.perform(environment)
31
+ res << (val.is_a?(Sass::Script::String) ? val.value : val.to_s)
32
+ res << @after.perform(environment).value
33
+ Sass::Script::String.new(res, :string)
34
+ end
35
+ end
36
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.189
4
+ version: 2.3.190
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -103,6 +103,7 @@ files:
103
103
  - lib/sass/script/css_lexer.rb
104
104
  - lib/sass/script/css_parser.rb
105
105
  - lib/sass/script/interpolation.rb
106
+ - lib/sass/script/string_interpolation.rb
106
107
  - lib/sass/callbacks.rb
107
108
  - lib/sass/tree/comment_node.rb
108
109
  - lib/sass/tree/debug_node.rb