class Sass::Value::Function
@see sass-lang.com/documentation/js-api/classes/sassfunction/
Sass’s function type.
def ==(other)
-
(::Boolean)
-
def ==(other) if id.nil? other.equal? self else other.is_a?(Sass::Value::Function) && other.id == id end end
def assert_function(_name = nil)
-
(Function)
-
def assert_function(_name = nil) self end
def hash
-
(Integer)
-
def hash id.nil? ? signature.hash : id.hash end
def initialize(id_or_signature, callback = nil)
-
callback
(Proc
) -- -
signature
(::String
) -- -
id
(Numeric
) --
Overloads:
-
initialize(signature, callback)
-
initialize(id)
def initialize(id_or_signature, callback = nil) if id_or_signature.is_a? Numeric @id = id_or_signature else @signature = id_or_signature @callback = callback end end