blob: 13b72ff715ffa7ad8f57737fe8aa0af4b764bef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# frozen_string_literal: true
module Sass
module Value
# Sass's mixin type.
#
# @see https://sass-lang.com/documentation/js-api/classes/sassmixin/
class Mixin
include Value
class << self
private :new
end
# @return [Object]
protected attr_reader :compile_context
# @return [Integer]
protected attr_reader :id
# @return [::Boolean]
def ==(other)
other.is_a?(Sass::Value::Mixin) && other.compile_context == compile_context && other.id == id
end
# @return [Integer]
def hash
@hash ||= [compile_context, id].hash
end
# @return [Mixin]
def assert_mixin(_name = nil)
self
end
end
end
end
|