Class: Dommy::Internal::SelectorAST::SelectorList

Inherits:
Struct
  • Object
show all
Defined in:
lib/dommy/internal/selector_ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectorsObject

Returns the value of attribute selectors

Returns:

  • (Object)

    the current value of selectors



23
24
25
# File 'lib/dommy/internal/selector_ast.rb', line 23

def selectors
  @selectors
end

Instance Method Details

#specificityObject



24
25
26
# File 'lib/dommy/internal/selector_ast.rb', line 24

def specificity
  selectors.map(&:specificity).max || ZERO
end