private Method

BasicLog.format(arg)

There's no documentation for this item.

Source Code

# File webrick/log.rb, line 62
def format(arg)
  str = if arg.is_a?(Exception)
    "#{arg.class}: #{arg.message}\n\t" <<
    arg.backtrace.join("\n\t") << "\n"
  elsif arg.respond_to?(:to_str)
    arg.to_str
  else
    arg.inspect
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.