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.5.6 lib/browser/iterable.rb
isomorfeus-preact-10.5.5 lib/browser/iterable.rb
isomorfeus-preact-10.5.4 lib/browser/iterable.rb
isomorfeus-preact-10.5.3 lib/browser/iterable.rb
isomorfeus-preact-10.5.2 lib/browser/iterable.rb
isomorfeus-preact-10.5.1 lib/browser/iterable.rb
isomorfeus-preact-10.5.0 lib/browser/iterable.rb
isomorfeus-react-16.13.11 lib/browser/iterable.rb
isomorfeus-react-16.13.10 lib/browser/iterable.rb
isomorfeus-react-16.13.9 lib/browser/iterable.rb
isomorfeus-react-16.13.8 lib/browser/iterable.rb
isomorfeus-react-16.13.7 lib/browser/iterable.rb
isomorfeus-react-16.13.6 lib/browser/iterable.rb
isomorfeus-react-16.13.5 lib/browser/iterable.rb
isomorfeus-react-16.13.4 lib/browser/iterable.rb
isomorfeus-react-16.13.3 lib/browser/iterable.rb
isomorfeus-react-16.13.2 lib/browser/iterable.rb
isomorfeus-react-16.13.1 lib/browser/iterable.rb
isomorfeus-react-16.13.0 lib/browser/iterable.rb
isomorfeus-react-16.12.24 lib/browser/iterable.rb