Class: CSS::Selectors::AttributeSelector
- Inherits:
-
Data
- Object
- Data
- CSS::Selectors::AttributeSelector
- 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
-
#case_flag ⇒ Object
readonly
Returns the value of attribute case_flag.
-
#matcher ⇒ Object
readonly
Returns the value of attribute matcher.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#case_flag ⇒ Object (readonly)
Returns the value of attribute case_flag
43 44 45 |
# File 'lib/css/selectors/nodes.rb', line 43 def case_flag @case_flag end |
#matcher ⇒ Object (readonly)
Returns the value of attribute matcher
43 44 45 |
# File 'lib/css/selectors/nodes.rb', line 43 def matcher @matcher end |
#name ⇒ Object (readonly)
Returns the value of attribute name
43 44 45 |
# File 'lib/css/selectors/nodes.rb', line 43 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value
43 44 45 |
# File 'lib/css/selectors/nodes.rb', line 43 def value @value end |