Sha256: 3debfb4adbbba05dbc2f67092c21f8f33b33a89e14c2eaa8f6decd1fabd904c4

Contents?: true

Size: 209 Bytes

Versions: 3

Compression:

Stored size: 209 Bytes

Contents

module Cogy
  class Handler
    attr_accessor :command

    def initialize(blk)
      @blk = blk
      @command = nil
    end

    def run(args, opts, user)
      @blk.call(args, opts, user)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cogy-0.0.3 lib/cogy/handler.rb
cogy-0.0.2 lib/cogy/handler.rb
cogy-0.0.1 lib/cogy/handler.rb