Module: Sass::Script::Functions
- Defined in:
- lib/griddy.rb
Instance Method Summary collapse
Instance Method Details
#griddy(width, height, color) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/griddy.rb', line 9 def griddy(width, height, color) assert_type width, :Number assert_type height, :Number assert_type color, :Color compiled_file = compile_file(width, height, color) base64_str = to_base64(compiled_file) Sass::Script::Value::String.new(base64_str) end |