Class: Sass::Value::Mixin

Inherits:
Object
  • Object
show all
Includes:
Sass::Value
Defined in:
lib/sass/value/mixin.rb

Overview

Sass’s mixin type.

Instance Method Summary collapse

Methods included from Sass::Value

#[], #assert_boolean, #assert_calculation, #assert_color, #assert_function, #assert_map, #assert_number, #assert_string, #at, #bracketed?, #eql?, #sass_index_to_array_index, #separator, #to_a, #to_bool, #to_map, #to_nil

Instance Method Details

#==(other) ⇒ ::Boolean

Returns:

  • (::Boolean)


21
22
23
# File 'lib/sass/value/mixin.rb', line 21

def ==(other)
  other.is_a?(Sass::Value::Mixin) && other.id == id
end

#assert_mixin(_name = nil) ⇒ Mixin

Returns:



31
32
33
# File 'lib/sass/value/mixin.rb', line 31

def assert_mixin(_name = nil)
  self
end

#hashInteger

Returns:

  • (Integer)


26
27
28
# File 'lib/sass/value/mixin.rb', line 26

def hash
  @hash ||= id.hash
end