Sha256: 2fb6e86f719d84b4ca183df02e3821a3643267683f60ee655eef9b252ed744b6

Contents?: true

Size: 667 Bytes

Versions: 6

Compression:

Stored size: 667 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

# this will be added in JRuby 1.1.6
module Java::JavaLang::Iterable
  include Enumerable

  def each
    it = iterator
    yield it.next while it.hasNext
  end

end


Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
hirobumi-celerity-0.0.5 lib/celerity/htmlunit.rb
jarib-celerity-0.0.5.1 lib/celerity/htmlunit.rb
jarib-celerity-0.0.5.2 lib/celerity/htmlunit.rb
jarib-celerity-0.0.5.4 lib/celerity/htmlunit.rb
jarib-celerity-0.0.5.5 lib/celerity/htmlunit.rb
jarib-celerity-0.0.5 lib/celerity/htmlunit.rb