Class: CSSPool::Selectors::PseudoClass

Inherits:
Additional show all
Defined in:
lib/csspool/selectors/pseudo_class.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, 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

#extraObject

Returns the value of attribute extra.



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

def extra
  @extra
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end