Sha256: 70b0a02355bd6d492ed3da6776840f3297df86d0cac92749d453ccca583920bf

Contents?: true

Size: 232 Bytes

Versions: 7

Compression:

Stored size: 232 Bytes

Contents

module Playmo
  class Silent
    attr_accessor :caller, :block

    def initialize(&block)
      @block = block
    end

    def set_caller(caller)
      @caller = caller
    end

    def execute!
      block.call
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
playmo-0.0.18 lib/playmo/silent.rb
playmo-0.0.17 lib/playmo/silent.rb
playmo-0.0.14 lib/playmo/silent.rb
playmo-0.0.13 lib/playmo/silent.rb
playmo-0.0.12 lib/playmo/silent.rb
playmo-0.0.11 lib/playmo/silent.rb
playmo-0.0.10 lib/playmo/silent.rb