Sha256: 0d515607e0b21dc30a21bd34c0c999ed64fe44b311d55fb02f22285fa1fcb62c

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

module Coolkit
  # Directory where the gem is located.
  # @return [String]
  def self.root_dir
    return File.expand_path("../../..", __FILE__)
  end

  # Directory for writing out files.
  # @return [String]
  def self.data_dir
    return File.join(self.root_dir, "data")
  end

  # Directory for writing out files.
  # @return [String]
  def self.tmp_dir
    return File.join(self.root_dir, "tmp")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coolkit-0.2.2 lib/coolkit/paths.rb
coolkit-0.2.1 lib/coolkit/paths.rb
coolkit-0.2.0 lib/coolkit/paths.rb
coolkit-0.1.0 lib/coolkit/paths.rb