Sha256: cbdb370cf5a65ac7c0f3460e19f873b760242b096cbea57d61c2d680b65abe41
Contents?: true
Size: 532 Bytes
Versions: 4
Compression:
Stored size: 532 Bytes
Contents
require 'hpricot' module Hpricot::IMWExtensions def contents_of path cnts = self.at path cnts.inner_html if cnts end def path_attr path, attr cnts = self.at path cnts.attributes[attr] if cnts end def class_of path self.path_attr_safely(path, 'class') end end class Hpricot::Elem include Hpricot::IMWExtensions end class Hpricot::Elements include Hpricot::IMWExtensions end class Hpricot::Doc include Hpricot::IMWExtensions end class Hpricot::BogusETag include Hpricot::IMWExtensions end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
titi-0.0.6 | lib/titi/ignore/hpricot.rb |
titi-0.0.5 | lib/titi/ignore/hpricot.rb |
titi-0.0.4 | lib/titi/ignore/hpricot.rb |
titi-0.0.3 | lib/titi/ignore/hpricot.rb |