All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.sass-3.5.5.lib.sass.script.value.callable.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
module Sass::Script::Value
  # A SassScript object representing a null value.
  class Callable < Base
    # Constructs a Callable value for use in SassScript.
    #
    # @param callable [Sass::Callable] The callable to be used when the
    # callable is called.
    def initialize(callable)
      super(callable)
    end

    def to_s(opts = {})
      raise Sass::SyntaxError.new("#{to_sass} isn't a valid CSS value.")
    end

    def inspect
      to_sass
    end

    # @abstract
    def to_sass
      Sass::Util.abstract(self)
    end
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy