Sha256: e295739927484243db9e364dff3377725257d90d946c6430ba609762061c6850

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

module TFA
  class AddCommand
    def initialize(storage)
      @storage = storage
    end

    def run(arguments)
      name = arguments.first
      @storage.save(arguments.first, arguments.last)
      "Added #{name}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tfa-0.0.8 lib/tfa/add_command.rb
tfa-0.0.7 lib/tfa/add_command.rb
tfa-0.0.6 lib/tfa/add_command.rb
tfa-0.0.5 lib/tfa/add_command.rb
tfa-0.0.4 lib/tfa/add_command.rb