Sha256: 83706cf012641be0557d7b7bb56d83f9104efd62ca443f2b2a3fab3e5be7d03c
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
require 'open-uri' require 'rubygems' require 'nokogiri' require 'css_inliner/version' require 'css_inliner/inliner' module CSSInliner class << self def process(html, basedir = '.', element = nil) doc = Inliner.new(html, basedir).inline doc = doc.css(element)[0] if element doc.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css_inliner-0.1.0 | lib/css_inliner.rb |