Top Level Namespace

Defined Under Namespace

Modules: Marshal, RobotArmy Classes: Array, Hash, Method, Object, Proc

Instance Method Summary collapse

Instance Method Details

#debug(*whatever) ⇒ Object



97
98
99
100
101
# File 'lib/robot-army.rb', line 97

def debug(*whatever)
  File.open('/tmp/robot-army.log', 'a') do |f|
    f.puts "[#{Process.pid}] #{whatever.join(' ')}"
  end if $TESTING || $ROBOT_ARMY_DEBUG
end