Skip to content

Commit 39d8f5b

Browse files
authored
Convert nil to sass null instead of empty sass string
1 parent daa94a2 commit 39d8f5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/sassc/embedded.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ def arguments_from_native_list(native_argument_list)
167167
Script::ValueConversion.from_native(native_value, @options)
168168
end
169169
end
170+
171+
remove_method(:to_native_value) if private_method_defined?(:to_native_value, false)
172+
173+
def to_native_value(sass_value)
174+
Script::ValueConversion.to_native(sass_value)
175+
end
170176
end
171177

172178
module NoopImporter

0 commit comments

Comments
 (0)