Module: TamTam
Overview
Sponsor: Gary Levitt of MadMimi.com
Constant Summary collapse
- UNSUPPORTED =
/(:first-letter|:link|:visited|:hover|:active)(\s|$)/
Instance Method Summary collapse
Instance Method Details
#inline(args) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/tamtam.rb', line 18 def inline(args) css, doc = process(args) raw_styles(css).each do |raw_style| style, contents = parse(raw_style) next if style.match(UNSUPPORTED) (doc/style).each do |element| apply_to(element, style, contents) end end doc.to_s end |