Module: CSSPool::Selectors

### Home Classes Methods

### In Files

- lib/csspool/selectors/additional.rb
- lib/csspool/selectors/attribute.rb
- lib/csspool/selectors/class.rb
- lib/csspool/selectors/id.rb
- lib/csspool/selectors/pseudo.rb
- lib/csspool/selectors/pseudo_class.rb
- lib/csspool/selectors/pseudo_element.rb
- lib/csspool/selectors/simple.rb
- lib/csspool/selectors/type.rb
- lib/csspool/selectors/universal.rb

### Namespace

- CLASS CSSPool::Selectors::Additional
- CLASS CSSPool::Selectors::Attribute
- CLASS CSSPool::Selectors::Class
- CLASS CSSPool::Selectors::Id
- CLASS CSSPool::Selectors::PseudoClass
- CLASS CSSPool::Selectors::PseudoElement
- CLASS CSSPool::Selectors::Simple
- CLASS CSSPool::Selectors::Type
- CLASS CSSPool::Selectors::Universal

### Methods

- ::pseudo

### Files

- CHANGELOG.rdoc
- Manifest.txt

### Class/Module Index

Quicksearch

- CSSPool
- CSSPool::CSS
- CSSPool::CSS::Charset
- CSSPool::CSS::Declaration
- CSSPool::CSS::Document
- CSSPool::CSS::DocumentHandler
- CSSPool::CSS::DocumentQuery
- CSSPool::CSS::FontfaceRule
- CSSPool::CSS::ImportRule
- CSSPool::CSS::KeyframesBlock
- CSSPool::CSS::KeyframesRule
- CSSPool::CSS::MediaFeature
- CSSPool::CSS::MediaQuery
- CSSPool::CSS::MediaQueryList
- CSSPool::CSS::MediaType
- CSSPool::CSS::NamespaceRule
- CSSPool::CSS::Parser
- CSSPool::CSS::RuleSet
- CSSPool::CSS::SupportsRule
- CSSPool::CSS::Tokenizer
- CSSPool::CSS::Tokenizer::ScanError
- CSSPool::Collection
- CSSPool::Node
- CSSPool::SAC
- CSSPool::SAC::Document
- CSSPool::SAC::Parser
- CSSPool::Selector
- CSSPool::Selectors
- CSSPool::Selectors::Additional
- CSSPool::Selectors::Attribute
- CSSPool::Selectors::Class
- CSSPool::Selectors::Id
- CSSPool::Selectors::PseudoClass
- CSSPool::Selectors::PseudoElement
- CSSPool::Selectors::Simple
- CSSPool::Selectors::Type
- CSSPool::Selectors::Universal
- CSSPool::Terms
- CSSPool::Terms::Function
- CSSPool::Terms::Hash
- CSSPool::Terms::Ident
- CSSPool::Terms::Math
- CSSPool::Terms::Number
- CSSPool::Terms::Ratio
- CSSPool::Terms::Resolution
- CSSPool::Terms::Rgb
- CSSPool::Terms::String
- CSSPool::Terms::URI
- CSSPool::Visitors
- CSSPool::Visitors::Children
- CSSPool::Visitors::Comparable
- CSSPool::Visitors::Iterator
- CSSPool::Visitors::ToCSS
- CSSPool::Visitors::ToMinifiedCSS
- CSSPool::Visitors::Visitor

No matching classes.

# CSSPool::Selectors

### Public Class Methods

pseudo(name) click to toggle source

    # File lib/csspool/selectors/pseudo.rb, line 6
    def self.pseudo name
      # FIXME: This is a bit of an ugly solution. Should be able to handle it
      # more elegantly, and without calling out css2
      css2_pseudo_elements =
      if %{after before first-letter first-line}.include? name
        PseudoElement.new name, true
      else
        PseudoClass.new name
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.