Class: Sass::Supports::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/supports.rb

Overview

The abstract superclass of all Supports conditions.

Direct Known Subclasses

Declaration, Interpolation, Negation, Operator

Instance Method Summary collapse

Instance Method Details

#deep_copyCondition

Returns a deep copy of this condition and all its children.

Returns:



24
# File 'lib/sass/supports.rb', line 24

def deep_copy; Sass::Util.abstract(self); end

#options=(options)

Sets the options hash for the script nodes in the supports condition.

Parameters:

  • options ({Symbol => Object})

    The options has to set.



29
# File 'lib/sass/supports.rb', line 29

def options=(options); Sass::Util.abstract(self); end

#perform(environment)

Runs the SassScript in the supports condition.

Parameters:



8
# File 'lib/sass/supports.rb', line 8

def perform(environment); Sass::Util.abstract(self); end

#to_cssString

Returns the CSS for this condition.

Returns:

  • (String)


13
# File 'lib/sass/supports.rb', line 13

def to_css; Sass::Util.abstract(self); end

#to_src(options) ⇒ String

Returns the Sass/CSS code for this condition.

Parameters:

  • options ({Symbol => Object})

    An options hash (see CSS#initialize).

Returns:

  • (String)


19
# File 'lib/sass/supports.rb', line 19

def to_src(options); Sass::Util.abstract(self); end