gems.sass-3.5.5.lib.sass.script.value.function.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy