Class: CSSPool::Selectors::PseudoClass
- Inherits:
-
Additional
- Object
- Node
- Additional
- CSSPool::Selectors::PseudoClass
- Defined in:
- lib/csspool/selectors/pseudo_class.rb
Instance Attribute Summary collapse
-
#extra ⇒ Object
Returns the value of attribute extra.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, extra = nil) ⇒ PseudoClass
constructor
A new instance of PseudoClass.
Methods included from Visitable
#==, #accept, #children, #each, #hash, #to_css
Constructor Details
#initialize(name, extra = nil) ⇒ PseudoClass
Returns a new instance of PseudoClass.
7 8 9 10 |
# File 'lib/csspool/selectors/pseudo_class.rb', line 7 def initialize name, extra = nil @name = name @extra = extra end |
Instance Attribute Details
#extra ⇒ Object
Returns the value of attribute extra.
5 6 7 |
# File 'lib/csspool/selectors/pseudo_class.rb', line 5 def extra @extra end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/csspool/selectors/pseudo_class.rb', line 4 def name @name end |