Sha256: 375998a0b870d5a29768da29a50f1aaeb729e792293d8c11ad6f4d848ad03d67

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 Bytes

Contents

# File: constants.rb
# Purpose: definition of Sequitur constants.

module Sequitur # Module used as a namespace
  # The version number of the gem.
  Version = '0.0.11'

  # Brief description of the gem.
  Description = 'Ruby implementation of the Sequitur algorithm'

  # Constant Sequitur::RootDir contains the absolute path of Sequitur's
  # root directory. Note: it also ends with a slash character.
  unless defined?(RootDir)
    # The initialisation of constant RootDir is guarded in order
    # to avoid multiple initialisation (not allowed for constants)

    # The root folder of Sequitur.
    RootDir = begin
      require 'pathname' # Load Pathname class from standard library
      rootdir = Pathname(__FILE__).dirname.parent.parent.expand_path
      rootdir.to_s + '/' # Append trailing slash character to it
    end
  end
end # module

# End of file

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sequitur-0.0.11 lib/sequitur/constants.rb