Sha256: edf7b9e4b8cf9628d06e7cd3beecfc3386f2864811165e0e8d36f1f59fa41d96
Contents?: true
Size: 913 Bytes
Versions: 1
Compression:
Stored size: 913 Bytes
Contents
module Celerity Jars = Dir[File.dirname(__FILE__) + '/htmlunit/*.jar'] Jars.each { |jar| require(jar) } include_class org.apache.commons.httpclient.Cookie end 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 unless Java::JavaLang::Iterable < Enumerable # depends on JRuby version class Java::ComGargoylesoftwareHtmlunitHtml::HtmlPage def inspect '#<HtmlPage:0x%s(%s)>' % [self.hash.to_s(16), getWebResponse.getRequestUrl.toString] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jarib-celerity-0.0.6.7 | lib/celerity/htmlunit.rb |