Module: CSSPool::Selectors

Defined in:
lib/csspool/selectors/id.rb,
lib/csspool/selectors/type.rb,
lib/csspool/selectors/class.rb,
lib/csspool/selectors/pseudo.rb,
lib/csspool/selectors/simple.rb,
lib/csspool/selectors/attribute.rb,
lib/csspool/selectors/universal.rb,
lib/csspool/selectors/additional.rb,
lib/csspool/selectors/pseudo_class.rb,
lib/csspool/selectors/pseudo_element.rb,
lib/csspool/selectors/media_expression.rb

Defined Under Namespace

Classes: Additional, Attribute, Class, Id, MediaExpression, PseudoClass, PseudoElement, Simple, Type, Universal

Class Method Summary collapse

Class Method Details

.pseudo(name) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/csspool/selectors/pseudo.rb', line 6

def Selectors.pseudo name
  css2_pseudo_elements = 
  if %w{after before first-letter first-line}.include? name
    PseudoElement.new name, true
  else
    PseudoClass.new name
  end
end