Syntactic sugar for getting the null logger instance.
Servolux::NullLogger() #=> NullLogger singleton instance
# File lib/servolux/null_logger.rb, line 16 def self.NullLogger NullLogger.instance end
Returns true if the execution platform supports fork.
@return [Boolean]
# File lib/servolux.rb, line 35 def self.fork? RUBY_PLATFORM != 'java' and test(e, '/dev/null') end
Returns the library path for the module. If any arguments are given, they
will be joined to the end of the library path using File.join.
@return [String] absolute servolux ‘lib’ path
# File lib/servolux.rb, line 17 def self.libpath( *args ) args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten) end
Returns the lpath for the module. If any arguments are given, they will be
joined to the end of the servolux base path using File.join.
@return [String] absolute servolux base path
# File lib/servolux.rb, line 27 def self.path( *args ) args.empty? ? PATH : ::File.join(PATH, args.flatten) end
Returns the version string for the library.
# File lib/servolux/version.rb, line 5 def self.version VERSION end