Module: Log
Instance Method Summary collapse
Instance Method Details
#log(message) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/fantasy/includes/log.rb', line 2 def log() if ENV["debug"] == "active" = "[#{Time.now.strftime("%T")}]" += " [#{object_id}]" += " [#{@name}]" if defined?(@name) += " : #{}" puts end end |