Class: CSS::Selectors::AnB
- Inherits:
-
Data
- Object
- Data
- CSS::Selectors::AnB
- Includes:
- Node
- Defined in:
- lib/css/selectors/nodes.rb
Overview
‘An+B` integer pair. `step` is the `n` coefficient, `offset` is the constant term. `even` => AnB(2, 0), `odd` => AnB(2, 1), `5` => AnB(0, 5), `n` => AnB(1, 0).
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset
56 57 58 |
# File 'lib/css/selectors/nodes.rb', line 56 def offset @offset end |
#step ⇒ Object (readonly)
Returns the value of attribute step
56 57 58 |
# File 'lib/css/selectors/nodes.rb', line 56 def step @step end |
Instance Method Details
#to_s ⇒ Object
58 |
# File 'lib/css/selectors/nodes.rb', line 58 def to_s = Selectors::Serializer.serialize(self) |