Class: Dommy::Internal::CSS::Parser::Selector

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

Overview

One comma branch of a selector list. specificity is the Selectors L4 [A, B, C] triple computed from Dommy's AST.

Instance Attribute Summary collapse

Instance Attribute Details

#astObject

Returns the value of attribute ast

Returns:

  • (Object)

    the current value of ast



19
20
21
# File 'lib/dommy/internal/css/parser.rb', line 19

def ast
  @ast
end

#specificityObject

Returns the value of attribute specificity

Returns:

  • (Object)

    the current value of specificity



19
20
21
# File 'lib/dommy/internal/css/parser.rb', line 19

def specificity
  @specificity
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



19
20
21
# File 'lib/dommy/internal/css/parser.rb', line 19

def text
  @text
end