Sha256: 62698e6c6a6fbb09395075bf12c1a80564e5aacde7151c2d70645e2d6cca0a7f

Contents?: true

Size: 245 Bytes

Versions: 170

Compression:

Stored size: 245 Bytes

Contents

module Browser
  class Iterable
    include Enumerable

    def initialize js_iterable
      @js_iterable = js_iterable
    end

    def each
      `#@js_iterable.length`.times do |i|
        yield `#@js_iterable[i]`
      end
    end
  end
end

Version data entries

170 entries across 170 versions & 2 rubygems

Version Path
isomorfeus-preact-10.6.54 lib/browser/iterable.rb
isomorfeus-preact-10.6.53 lib/browser/iterable.rb
isomorfeus-preact-10.6.52 lib/browser/iterable.rb
isomorfeus-preact-10.6.51 lib/browser/iterable.rb
isomorfeus-preact-10.6.50 lib/browser/iterable.rb
isomorfeus-preact-10.6.49 lib/browser/iterable.rb
isomorfeus-preact-10.6.48 lib/browser/iterable.rb
isomorfeus-preact-10.6.47 lib/browser/iterable.rb
isomorfeus-preact-10.6.46 lib/browser/iterable.rb
isomorfeus-preact-10.6.45 lib/browser/iterable.rb
isomorfeus-preact-10.6.44 lib/browser/iterable.rb
isomorfeus-preact-10.6.43 lib/browser/iterable.rb
isomorfeus-preact-10.6.42 lib/browser/iterable.rb
isomorfeus-preact-10.6.41 lib/browser/iterable.rb
isomorfeus-preact-10.6.40 lib/browser/iterable.rb
isomorfeus-preact-10.6.39 lib/browser/iterable.rb
isomorfeus-preact-10.6.38 lib/browser/iterable.rb
isomorfeus-preact-10.6.37 lib/browser/iterable.rb
isomorfeus-preact-10.6.36 lib/browser/iterable.rb
isomorfeus-preact-10.6.35 lib/browser/iterable.rb