Module: Compass::Core::SassExtensions::Functions::GradientSupport::Gradient::ClassMethods

Defined in:
lib/compass/core/sass_extensions/functions/gradient_support.rb

Instance Method Summary collapse

Instance Method Details

#standardized_prefix(prefix) ⇒ Object



237
238
239
240
241
242
243
# File 'lib/compass/core/sass_extensions/functions/gradient_support.rb', line 237

def standardized_prefix(prefix)
  class_eval %Q<
    def to_#{prefix}(options = self.options)
      identifier("-#{prefix}-\#{to_s_prefixed(options)}")
    end
  >
end