lib/macros4cuke/constants.rb in macros4cuke-0.3.37 vs lib/macros4cuke/constants.rb in macros4cuke-0.3.38

- old
+ new

@@ -1,11 +1,11 @@ # File: constants.rb # Purpose: definition of Macros4Cuke constants. module Macros4Cuke # Module used as a namespace # The version number of the gem. - Version = '0.3.37' + Version = '0.3.38' # Brief description of the gem. Description = 'Macros for Cucumber' # Constant Macros4Cuke::RootDir contains the absolute path of Rodent's @@ -15,11 +15,11 @@ # 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 + rootdir = Pathname(__FILE__).dirname.parent.parent.expand_path + rootdir.to_s + '/' # Append trailing slash character to it end end end # module # End of file \ No newline at end of file