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-22.9.0.rc3 lib/browser/iterable.rb
isomorfeus-preact-22.9.0.rc2 lib/browser/iterable.rb
isomorfeus-preact-22.9.0.rc1 lib/browser/iterable.rb
isomorfeus-preact-10.9.0 lib/browser/iterable.rb
isomorfeus-preact-10.8.2 lib/browser/iterable.rb
isomorfeus-preact-10.8.1 lib/browser/iterable.rb
isomorfeus-preact-10.8.0 lib/browser/iterable.rb
isomorfeus-preact-10.7.3 lib/browser/iterable.rb
isomorfeus-preact-10.7.2 lib/browser/iterable.rb
isomorfeus-preact-10.7.1 lib/browser/iterable.rb
isomorfeus-react-16.13.12 lib/browser/iterable.rb
isomorfeus-preact-10.7.0 lib/browser/iterable.rb
isomorfeus-preact-10.6.62 lib/browser/iterable.rb
isomorfeus-preact-10.6.61 lib/browser/iterable.rb
isomorfeus-preact-10.6.60 lib/browser/iterable.rb
isomorfeus-preact-10.6.59 lib/browser/iterable.rb
isomorfeus-preact-10.6.58 lib/browser/iterable.rb
isomorfeus-preact-10.6.57 lib/browser/iterable.rb
isomorfeus-preact-10.6.56 lib/browser/iterable.rb
isomorfeus-preact-10.6.55 lib/browser/iterable.rb