Module: GRCommons

Defined in:
lib/gr_commons/gr_commons.rb,
lib/gr_commons/gr_lib.rb,
lib/gr_commons/fiddley.rb,
lib/gr_commons/version.rb,
lib/gr_commons/gr_logger.rb,
lib/gr_commons/try_extern.rb,
lib/gr_commons/define_methods.rb,
lib/gr_commons/gr_common_utils.rb,
lib/gr_commons/jupyter_support.rb

Overview

Module with common code for GR, GR3.

Defined Under Namespace

Modules: DefineMethods, Fiddley, GRCommonUtils, GRLib, JupyterSupport, TryExtern Classes: GRLogger

Constant Summary collapse

VERSION =
'0.73.6.0'

Class Method Summary collapse

Class Method Details

.gr_log(out = $stderr) ⇒ GRLogger

Create a new GRLogger

Examples:

require 'gr_commons/gr_logger'
GRCommons.gr_log("log.txt")

Parameters:

  • out (String) (defaults to: $stderr)

Returns:



20
21
22
# File 'lib/gr_commons/gr_logger.rb', line 20

def gr_log(out = $stderr)
  GRCommons::GRLogger.new(out)
end

.gr_loggerGRLogger

Return the last created GRLogger

Returns:



27
28
29
# File 'lib/gr_commons/gr_logger.rb', line 27

def gr_logger
  GRCommons::GRLogger.logger
end