Method: Sass::Script::Value::Base#to_h

Defined in:
lib/sass/script/value/base.rb

#to_hHash<Value, Value>

Returns the value of this value as a hash. Most values don't have hash representations, but [Map]s and empty [List]s do.

Returns:

Raises:


214
215
216
# File 'lib/sass/script/value/base.rb', line 214

def to_h
  raise Sass::SyntaxError.new("#{inspect} is not a map.")
end