All pastes #1864753 Raw Edit

Anonymous

public ruby v1 · immutable
#1864753 ·published 2010-04-17 11:55 UTC
rendered paste body
  class RubyTwitInternal    def initialize(rubytwit, bot)      @rubytwit = rubytwit      @bot = bot    end    def method_missing(name, *args)      if @rubytwit.respond_to?(name) then        begin          @rubytwit.send(name, *args)        rescue => e          @bot.runner.log(Logger::ERROR, 'an error occurred')          @bot.runner.log(Logger::ERROR, e)        end      else        super      end    end  end