Method: Sass::Script::Value::Base#options

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

#options{Symbol => Object}

Returns the options hash for this node.

Returns:

Raises:

  • if the options hash hasn't been set. This should only happen when the value was created outside of the parser and #to_s was called on it



41
42
43
44
45
46
47
48
49
# File 'lib/sass/script/value/base.rb', line 41

def options
  return @options if @options
  raise Sass::SyntaxError.new(<<MSG)
The #options attribute is not set on this #{self.class}.
  This error is probably occurring because #to_s was called
  on this value within a custom Sass function without first
  setting the #options attribute.
MSG
end