Module: Sass::Script::Functions

Defined in:
lib/sass/getunicode.rb

Overview

Example:

.foo:after

content:getUnicode("⬆");

Instance Method Summary collapse

Instance Method Details

#getUnicode(string) ⇒ Object



9
10
11
12
# File 'lib/sass/getunicode.rb', line 9

def getUnicode(string)
    assert_type string, :String
    Sass::Script::String.new("\\"+string.value.ord.to_s(16), :string)
end