Module: NWN
- Included in:
- Gff::Scripting::Sandbox
- Defined in:
- lib/nwn/erf.rb,
lib/nwn/gff.rb,
lib/nwn/res.rb,
lib/nwn/tlk.rb,
lib/nwn/twoda.rb,
lib/nwn/settings.rb
Defined Under Namespace
Modules: Erf, Gff, Resources, Tlk, TwoDA
Constant Summary collapse
- YAML_DOMAIN =
See www.taguri.org/ for the exact meaning of this.
"nwn-lib.elv.es,2008-12"
Class Method Summary collapse
-
.log_debug(msg) ⇒ Object
This writes a debug message to stderr if the environment variable
NWN_LIB_DEBUG
is set to non-nil or $DEBUG is true (ruby -d).
Class Method Details
.log_debug(msg) ⇒ Object
This writes a debug message to stderr if the environment variable NWN_LIB_DEBUG
is set to non-nil or $DEBUG is true (ruby -d).
6 7 8 9 10 |
# File 'lib/nwn/settings.rb', line 6 def self.log_debug msg return false unless ENV['NWN_LIB_DEBUG'] || $DEBUG $stderr.puts "(nwn-lib debug) %s: %s" % [caller[0].to_s, msg] true end |