Exception: Exception

Defined in:
/home/apoc/projects/ruby/rbot/lib/rbot/ircbot.rb

Direct Known Subclasses

GetTextVersionError

Instance Method Summary (collapse)

Instance Method Details

- (Object) pretty_print(q)



35
36
37
38
39
40
41
42
# File '/home/apoc/projects/ruby/rbot/lib/rbot/ircbot.rb', line 35

def pretty_print(q)
  q.group(1, "#<%s: %s" % [self.class, self.message], ">") {
    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