for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
require_relative 'element'
module Hyalite::DOM
class Collection
include Native
include Enumerable
def each(&block)
`self.native.length`.times do |i|
block.call Element.new(`self.native.item(i)`)
end
nil
def [](index)
Element.new(`self.native.item(index)`)
def length
`self.native.length`