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)


19
20
21
# File 'lib/sass/value/mixin.rb', line 19

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

#assert_mixin(_name = nil) ⇒ Mixin

Returns:



29
30
31
# File 'lib/sass/value/mixin.rb', line 29

def assert_mixin(_name = nil)
  self
end

#hashInteger

Returns:

  • (Integer)


24
25
26
# File 'lib/sass/value/mixin.rb', line 24

def hash
  @hash ||= id.hash
end