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.66.0.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:


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

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

.gr_loggerGRLogger

Return the last created GRLogger

Returns:


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

def gr_logger
  GRCommons::GRLogger.logger
end