Class: Compass::SassExtensions::Functions::CrossBrowserSupport::CSS2FallbackValue
- Inherits:
-
Sass::Script::Literal
- Object
- Sass::Script::Literal
- Compass::SassExtensions::Functions::CrossBrowserSupport::CSS2FallbackValue
- Defined in:
- lib/compass/sass_extensions/functions/cross_browser_support.rb
Instance Attribute Summary collapse
-
#css2_value ⇒ Object
Returns the value of attribute css2_value.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #children ⇒ Object
- #has_aspect? ⇒ Boolean
-
#initialize(value, css2_value) ⇒ CSS2FallbackValue
constructor
A new instance of CSS2FallbackValue.
- #inspect ⇒ Object
- #supports?(aspect) ⇒ Boolean
- #to_css2(options = self.options) ⇒ Object
- #to_s(options = self.options) ⇒ Object
Constructor Details
#initialize(value, css2_value) ⇒ CSS2FallbackValue
Returns a new instance of CSS2FallbackValue.
8 9 10 11 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 8 def initialize(value, css2_value) self.value = value self.css2_value = css2_value end |
Instance Attribute Details
#css2_value ⇒ Object
Returns the value of attribute css2_value.
4 5 6 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 4 def css2_value @css2_value end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 4 def value @value end |
Instance Method Details
#children ⇒ Object
5 6 7 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 5 def children [value, css2_value] end |
#has_aspect? ⇒ Boolean
21 22 23 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 21 def has_aspect? true end |
#inspect ⇒ Object
12 13 14 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 12 def inspect to_s end |
#supports?(aspect) ⇒ Boolean
18 19 20 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 18 def supports?(aspect) aspect == "css2" end |
#to_css2(options = self.options) ⇒ Object
24 25 26 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 24 def to_css2( = self.) css2_value end |
#to_s(options = self.options) ⇒ Object
15 16 17 |
# File 'lib/compass/sass_extensions/functions/cross_browser_support.rb', line 15 def to_s( = self.) value.to_s() end |