Sha256: 3a4d1989350a8dfc52ab7b163eea3f6c94082a6c88c2b04ec1edcbb50ee3087b

Contents?: true

Size: 181 Bytes

Versions: 3

Compression:

Stored size: 181 Bytes

Contents

module Ginbin
  class Command
    attr_reader :title

    def initialize(title:, cmd:)
      @title = title
      @cmd = cmd
    end

    def call
      exec @cmd
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ginbin-1.0.1 lib/ginbin/command.rb
ginbin-1.0.0 lib/ginbin/command.rb
ginbin-0.1.0 lib/ginbin/command.rb