class Sass::Value::Function
@see sass-lang.com/documentation/js-api/classes/sassfunction/
Sass’s function type.
def ==(other)
-
(::Boolean)
-
def ==(other) return false unless other.is_a?(Sass::Value::Function) if defined?(@id) other.compile_context == compile_context && other.id == id else other.signature == signature && other.callback == callback end end
def assert_function(_name = nil)
-
(Function)
-
def assert_function(_name = nil) self end
def hash
-
(Integer)
-
def hash @hash ||= defined?(@id) ? [compile_context, id].hash : [signature, callback].hash end
def initialize(signature, &callback)
-
callback
(Proc
) -- -
signature
(::String
) --
def initialize(signature, &callback) @signature = signature.freeze @callback = callback.freeze end