class Sass::Value::Function

def ==(other)

Returns:
  • (::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)

Returns:
  • (Function) -
def assert_function(_name = nil)
  self
end

def hash

Returns:
  • (Integer) -
def hash
  id.nil? ? signature.hash : id.hash
end

def initialize(id_or_signature, callback = nil)

Parameters:
  • 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