Sha256: fdcceccc1a0380bf4f02e0846bedadd0ef544c852c592b3ed123271821bae454

Contents?: true

Size: 306 Bytes

Versions: 1

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

class Shoes
  class Timer
    include Common::Inspect

    def initialize(app, n = 1000, &blk)
      @app = app
      @n   = n
      @blk = @app.current_slot.create_bound_block(blk)
      @gui = Shoes.backend_for(self, @blk)
    end

    attr_reader :app, :n, :gui
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.rc1 lib/shoes/timer.rb