Exception: Exception
- Defined in:
- lib/rbot/ircbot.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#pretty_print(q) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/rbot/ircbot.rb', line 34 def pretty_print(q) q.group(1, "#<%s: %s" % [self.class, self.], ">") { if self.backtrace and not self.backtrace.empty? q.text "\n" q.seplist(self.backtrace, lambda { q.text "\n" } ) { |l| q.text l } end } end |