Class: SyntaxTree::CSS::CDOToken
- Defined in:
- lib/syntax_tree/css/nodes.rb
Overview
A parsed token containing a CDO (<!–). www.w3.org/TR/css-syntax-3/#typedef-cdo-token
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object (also: #deconstruct)
- #deconstruct_keys(keys) ⇒ Object
-
#initialize(location:) ⇒ CDOToken
constructor
A new instance of CDOToken.
Methods inherited from Node
Constructor Details
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
172 173 174 |
# File 'lib/syntax_tree/css/nodes.rb', line 172 def location @location end |
Instance Method Details
#accept(visitor) ⇒ Object
178 179 180 |
# File 'lib/syntax_tree/css/nodes.rb', line 178 def accept(visitor) visitor.visit_cdo_token(self) end |
#child_nodes ⇒ Object Also known as: deconstruct
182 183 184 |
# File 'lib/syntax_tree/css/nodes.rb', line 182 def child_nodes [] end |
#deconstruct_keys(keys) ⇒ Object
188 189 190 |
# File 'lib/syntax_tree/css/nodes.rb', line 188 def deconstruct_keys(keys) { location: location } end |