Sha256: 8894ab4d7f0e0bc0ca73eec4f572f687c05c8d7101669b67b19e130989feb2d1

Contents?: true

Size: 248 Bytes

Versions: 4

Compression:

Stored size: 248 Bytes

Contents

module Shellject
  # Models the shelljections directory as a repository.
  class SaveDirectory
    attr_reader :path

    def initialize(path)
      @path ||= Pathname.new path
    end

    def path_for(name)
      path.join name
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shellject-1.0.1 lib/shellject/save_directory.rb
shellject-0.3.0 lib/shellject/save_directory.rb
shellject-0.2.0 lib/shellject/save_directory.rb
shellject-0.1.0 lib/shellject/save_directory.rb