Project

General

Profile

« Previous | Next » 

Revision 7988a0ad

Added by Marc Dequènes almost 14 years ago

  • ID 7988a0ad801d3eef2e109ad98cf02a92be298fdf

[fix] correct TaskAspect to find the bot reference correctly

View differences:

lib/cyborghood/cyborg.rb
module CyborgHood
module TaskAspect
def task(name, &block)
DSL::Task.new(self, name, &block)
the_bot = self.is_a?(Cyborg) ? self : self.bot
DSL::Task.new(the_bot, name, &block)
end
def schedule_task(callback = nil, &task)
lib/cyborghood/cyborg/botnet/interface.rb
# needed for testing node existence
reveal :nil?
reveal :respond_to?
reveal :is_a?
def initialize(bot, parent_node = nil, options = {}, &block)
@bot = bot

Also available in: Unified diff