Module Kernel
In: lib/commandline/kernel.rb
Kernel dot/f_4.png

This file contains additions to the Kernel module. Essentially, any functions that need global access go here.

Methods

debug  

Public Instance methods

This is a simple debug that takes either a description and an argument or just an argument. We may want to add more debug statements, maybe some that use pp or inspect.

[Source]

    # File lib/commandline/kernel.rb, line 9
 9:   def debug(desc, *arg)
10:     return unless $DEBUG
11:     if arg.empty?
12:       puts "==>  #{desc}" 
13:     else
14:       puts "==>  #{desc}: #{arg.join(", ")}"
15:     end
16:   end

[Validate]