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.14 lib/browser/iterable.rb
isomorfeus-preact-10.6.13 lib/browser/iterable.rb
isomorfeus-preact-10.6.12 lib/browser/iterable.rb
isomorfeus-preact-10.6.11 lib/browser/iterable.rb
isomorfeus-preact-10.6.10 lib/browser/iterable.rb
isomorfeus-preact-10.6.9 lib/browser/iterable.rb
isomorfeus-preact-10.6.8 lib/browser/iterable.rb
isomorfeus-preact-10.6.7 lib/browser/iterable.rb
isomorfeus-preact-10.6.6 lib/browser/iterable.rb
isomorfeus-preact-10.6.5 lib/browser/iterable.rb
isomorfeus-preact-10.6.4 lib/browser/iterable.rb
isomorfeus-preact-10.6.3 lib/browser/iterable.rb
isomorfeus-preact-10.6.2 lib/browser/iterable.rb
isomorfeus-preact-10.6.1 lib/browser/iterable.rb
isomorfeus-preact-10.6.0 lib/browser/iterable.rb
isomorfeus-preact-10.5.11 lib/browser/iterable.rb
isomorfeus-preact-10.5.10 lib/browser/iterable.rb
isomorfeus-preact-10.5.9 lib/browser/iterable.rb
isomorfeus-preact-10.5.8 lib/browser/iterable.rb
isomorfeus-preact-10.5.7 lib/browser/iterable.rb