Module: CSSPool

Defined in:
lib/csspool.rb,
lib/csspool/node.rb,
lib/csspool/selector.rb,
lib/csspool/css/media.rb,
lib/csspool/lib_croco.rb,
lib/csspool/terms/rgb.rb,
lib/csspool/terms/uri.rb,
lib/csspool/visitable.rb,
lib/csspool/collection.rb,
lib/csspool/sac/parser.rb,
lib/csspool/terms/hash.rb,
lib/csspool/css/charset.rb,
lib/csspool/terms/ident.rb,
lib/csspool/css/document.rb,
lib/csspool/css/rule_set.rb,
lib/csspool/sac/document.rb,
lib/csspool/selectors/id.rb,
lib/csspool/terms/number.rb,
lib/csspool/terms/string.rb,
lib/csspool/selectors/type.rb,
lib/csspool/terms/function.rb,
lib/csspool/css/declaration.rb,
lib/csspool/css/import_rule.rb,
lib/csspool/lib_croco/glist.rb,
lib/csspool/selectors/class.rb,
lib/csspool/visitors/to_css.rb,
lib/csspool/lib_croco/cr_num.rb,
lib/csspool/lib_croco/cr_rgb.rb,
lib/csspool/selectors/simple.rb,
lib/csspool/visitors/visitor.rb,
lib/csspool/lib_croco/cr_term.rb,
lib/csspool/visitors/children.rb,
lib/csspool/visitors/iterator.rb,
lib/csspool/lib_croco/cr_parser.rb,
lib/csspool/lib_croco/cr_pseudo.rb,
lib/csspool/selectors/attribute.rb,
lib/csspool/selectors/universal.rb,
lib/csspool/visitors/comparable.rb,
lib/csspool/css/document_handler.rb,
lib/csspool/selectors/additional.rb,
lib/csspool/lib_croco/cr_attr_sel.rb,
lib/csspool/lib_croco/cr_selector.rb,
lib/csspool/selectors/pseudo_class.rb,
lib/csspool/lib_croco/cr_simple_sel.rb,
lib/csspool/lib_croco/cr_doc_handler.rb,
lib/csspool/lib_croco/cr_additional_sel.rb,
lib/csspool/lib_croco/cr_parsing_location.rb

Defined Under Namespace

Modules: CSS, LibCroco, SAC, Selectors, Terms, Visitable, Visitors Classes: Collection, Node, Selector

Constant Summary collapse

VERSION =
"2.0.2"

Class Method Summary collapse

Class Method Details

.CSS(doc) ⇒ Object



17
18
19
# File 'lib/csspool.rb', line 17

def self.CSS doc
  CSSPool::CSS::Document.parse doc
end