Sha256: be20afa6cb0c2570fa96c97e38a65472e3d05d93edbafbb8099d95b851dab490
Contents?: true
Size: 792 Bytes
Versions: 6
Compression:
Stored size: 792 Bytes
Contents
module Celerity Jars = Dir[File.dirname(__FILE__) + '/htmlunit/*.jar'] end Celerity::Jars.each { |jar| require(jar) } module HtmlUnit include_package 'com.gargoylesoftware.htmlunit' module Html include_package 'com.gargoylesoftware.htmlunit.html' end module Util include_package 'com.gargoylesoftware.htmlunit.util' end end module Java::OrgW3cDom::NamedNodeMap include Enumerable def each 0.upto(getLength - 1) do |idx| yield item(idx) end end end module Java::JavaLang::Iterable include Enumerable def each it = iterator yield it.next while it.hasNext end end class Java::ComGargoylesoftwareHtmlunitHtml::HtmlPage def inspect '#<HtmlPage:0x%s(%s)>' % [self.hash.to_s(16), getWebResponse.getUrl.toString] end end
Version data entries
6 entries across 6 versions & 1 rubygems