Class: CSS::Selectors::AttributeSelector

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/css/selectors/nodes.rb

Overview

Attribute matchers:

nil         — `[name]` (presence)
:exact      — `[a=b]`
:includes   — `[a~=b]`
:dash       — `[a|=b]`
:prefix     — `[a^=b]`
:suffix     — `[a$=b]`
:substring  — `[a*=b]`

‘case_flag` is `nil`, `:i`, or `:s`.

Instance Attribute Summary collapse

Instance Attribute Details

#case_flagObject (readonly)

Returns the value of attribute case_flag

Returns:

  • (Object)

    the current value of case_flag



43
44
45
# File 'lib/css/selectors/nodes.rb', line 43

def case_flag
  @case_flag
end

#matcherObject (readonly)

Returns the value of attribute matcher

Returns:

  • (Object)

    the current value of matcher



43
44
45
# File 'lib/css/selectors/nodes.rb', line 43

def matcher
  @matcher
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



43
44
45
# File 'lib/css/selectors/nodes.rb', line 43

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



43
44
45
# File 'lib/css/selectors/nodes.rb', line 43

def value
  @value
end