lib/iconoclasm.rb in iconoclasm-1.0.2 vs lib/iconoclasm.rb in iconoclasm-1.0.3
- old
+ new
@@ -13,6 +13,13 @@
def extract(url, content = nil)
Iconoclasm::Favicon.new(extract_favicon_from(url, content))
end
end
-end
+end
+
+# For 1.8.6 compatibility.
+class String
+ def lines
+ Enumerable::Enumerator.new(self.split("\n"))
+ end
+end unless ''.respond_to?(:lines)
\ No newline at end of file