Sha256: efe2d078f9551eea782a2a84c93d367651695ecd73adecec018d1073d5d6e8ce
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
# File: constants.rb # Purpose: definition of Macros4Cuke constants. module Macros4Cuke # Module used as a namespace # This constant keeps the current version of the gem. Version = '0.1.03' Description = "Macros for Cucumber" # Constant Macros4Cuke::RootDir contains the absolute path of Rodent'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) 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 |
---|---|
macros4cuke-0.1.03 | lib/macros4cuke/constants.rb |