Sha256: d71ab63e2610583d203f1b9f7b2a85aef6e270a3730a02bcdebd8e574fd3553e

Contents?: true

Size: 874 Bytes

Versions: 1

Compression:

Stored size: 874 Bytes

Contents

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

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

  # Brief description of the gem.
  Description = 'Add your own macro-steps to Cucumber scenarios'

  # Constant Macros4Cuke::RootDir contains the absolute path of Macro4Cuke'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 Macros4Cuke.
    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.5.03 lib/macros4cuke/constants.rb