Module: Wiskey::SassExtensions::Functions::RemoveUnit
- Included in:
- Sass::Script::Functions
- Defined in:
- lib/wiskey/sass_extensions/functions/remove_unit.rb
Overview
Color number generates hex string without ‘#’ symbol for IE filters
Instance Method Summary collapse
Instance Method Details
#remove_unit(string) ⇒ Object
4 5 6 |
# File 'lib/wiskey/sass_extensions/functions/remove_unit.rb', line 4 def remove_unit(string) Sass::Script::Number.new string.to_s.to_f end |