Sha256: 79a0e80b06f815f0f74b8c517f436b4633302ddf21c76085ee26589acc94a414

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

#!/usr/bin/ruby -w
# -*- ruby -*-

module Command
  module Cacheable
  end
end

module Command::Cacheable
  class FileName
    attr_reader :name

    def initialize args
      @name = args.join('-').gsub('/', '_slash_') + '.gz'
    end

    def to_s
      @name
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
command-cacheable-0.2.1 lib/command/cacheable/filename.rb
command-cacheable-0.2.0 lib/command/cacheable/filename.rb
command-cacheable-0.1.0 lib/command/cacheable/filename.rb