Add some HTML just previous to each element in this list. Pass in an HTML str, which is turned into Hpricot elements.
Source Code
# File hpricot/elements.rb, line 144 def before(str = nil, &blk) each { |x| x.parent.insert_before Hpricot.make(str, &blk), x } end
<code/>and<pre/>for code samples.