Sha256: b81c99768e1b2b1b4153f09e41c9c2c0f810327e8234f75c1ab950145e51e2b1
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true # File: constants.rb # Purpose: definition of Sequitur constants. module Sequitur # Module used as a namespace # The version number of the gem. Version = '0.1.23' # Brief description of the gem. Description = 'Ruby implementation of the Sequitur algorithm' # Constant Sequitur::RootDir contains the absolute path of Sequitur's # start 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 start folder of Sequitur. RootDir = begin require 'pathname' # Load Pathname class from standard library startdir = Pathname(__FILE__).dirname.parent.parent.expand_path "#{startdir}/" # 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.1.23 | lib/sequitur/constants.rb |