HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/rubygems-integration/all/gems/sass-3.7.4/lib/sass/script/value/function.rb
module Sass::Script::Value
  # A SassScript object representing a function.
  class Function < Callable
    # Constructs a Function value for use in SassScript.
    #
    # @param function [Sass::Callable] The callable to be used when the
    # function is invoked.
    def initialize(function)
      unless function.type == "function"
        raise ArgumentError.new("A callable of type function was expected.")
      end
      super
    end

    def to_sass
      %{get-function("#{value.name}")}
    end
  end
end