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