module Compass::Core::SassExtensions::Functions::GradientSupport::Gradient
Public Class Methods
included(base)
click to toggle source
# File lib/compass/core/sass_extensions/functions/gradient_support.rb, line 232 def self.included(base) base.extend ClassMethods end
Public Instance Methods
angle?(value)
click to toggle source
# File lib/compass/core/sass_extensions/functions/gradient_support.rb, line 262 def angle?(value) value.is_a?(Sass::Script::Value::Number) && value.numerator_units.size == 1 && value.numerator_units.first == "deg" && value.denominator_units.empty? end
has_aspect?()
click to toggle source
# File lib/compass/core/sass_extensions/functions/gradient_support.rb, line 254 def has_aspect? true end
inspect()
click to toggle source
# File lib/compass/core/sass_extensions/functions/gradient_support.rb, line 246 def inspect to_s end
is_position(pos)
click to toggle source
# File lib/compass/core/sass_extensions/functions/gradient_support.rb, line 258 def is_position(pos) pos.value =~ Compass::Core::SassExtensions::Functions::Constants::POSITIONS end
supports?(aspect)
click to toggle source
# File lib/compass/core/sass_extensions/functions/gradient_support.rb, line 250 def supports?(aspect) GRADIENT_ASPECTS.include?(aspect) end