Sha256: 0ffe7ce9419b0951f2252b16aee2ada9b07466d7e6f3dd0342779e8d6b4e38b9

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

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

    def run(arguments)
      name = arguments.last
      @storage.transaction(true) do
        @storage[name]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tfa-0.0.3 lib/tfa/show_command.rb
tfa-0.0.2 lib/tfa/show_command.rb
tfa-0.0.1 lib/tfa/show_command.rb