module Sass::Script::Functions
Public Instance Methods
to_glyph(string)
click to toggle source
# File lib/glyph.rb, line 16 def to_glyph(string) assert_type string, :String converted_string = string.value.unpack("U*").first.to_s(16).upcase; if converted_string.length <= 2 converted_string = converted_string.insert(0, "\\00") else converted_string = converted_string.insert(0, "\\") end Sass::Script::Value::String.new(converted_string) end