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



105
106
107
108
109
# File 'lib/robot-army.rb', line 105

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