Class: Sass::Script::List

Inherits:
Literal
  • Object
show all
Defined in:
lib/compass/core/sass_extensions/monkey_patches/browser_support.rb

Instance Method Summary collapse

Instance Method Details

#has_aspect?Boolean

Returns:

  • (Boolean)


114
115
116
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 114

def has_aspect?
  children.any? {|child| child.respond_to?(:has_aspect?) && child.has_aspect? }
end

#supports?(aspect) ⇒ Boolean

Returns:

  • (Boolean)


110
111
112
# File 'lib/compass/core/sass_extensions/monkey_patches/browser_support.rb', line 110

def supports?(aspect)
  children.any? {|child| child.respond_to?(:supports?) && child.supports?(aspect) }
end