Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def split_string(string, key)
items = string.value.split(" " + key.value + " ")
if items.count == 1
Sass::Script::Bool.new(false)
else
Sass::Script::List.new(items.map{|i| Sass::Script::String.new(i), :comma)
end
end
@Snugug

This comment has been minimized.

Copy link

commented Jan 13, 2013

SyntaxError on line 28 of /Users/Richard/Development/susy/test/config.rb: compile error
/Users/Richard/Development/susy/test/config.rb:25: syntax error, unexpected ',', expecting '}'
...| Sass::Script::String.new(i), :comma)
                              ^
Run with --trace to see the full backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.