Sha256: bf4e142678330144d2618f610dab3eece659d75ebd711c93aa89d00c8b03e5d9

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

# encoding: utf-8
require "belzebuth/wait_condition/base"

module Belzebuth module WaitCondition
  class Closure < Base
    def initialize(callback)
      @callback = callback
    end

    def call(process)
      @callback.call(process)
    end
  end
end end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
belzebuth-0.2.3 lib/belzebuth/wait_condition/closure.rb
belzebuth-0.2.2 lib/belzebuth/wait_condition/closure.rb
belzebuth-0.2.1 lib/belzebuth/wait_condition/closure.rb
belzebuth-0.2.0 lib/belzebuth/wait_condition/closure.rb
belzebuth-0.1.0 lib/belzebuth/wait_condition/closure.rb