Class: CSSPool::Selectors::PseudoElement

Inherits:
Additional show all
Defined in:
lib/csspool/selectors/pseudo_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#css2Object

Returns the value of attribute css2.



5
6
7
# File 'lib/csspool/selectors/pseudo_element.rb', line 5

def css2
  @css2
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/csspool/selectors/pseudo_element.rb', line 4

def name
  @name
end