Revision cf95e788
Added by Marc Dequènes over 13 years ago
- ID cf95e788a880cd8db3033c0630abb3e32df9ccf7
lib/cyborghood/cyborg/botnet/interface.rb | ||
---|---|---|
|
||
include TaskAspect
|
||
|
||
# needed for testing node existence
|
||
reveal :nil?
|
||
reveal :respond_to?
|
||
reveal :is_a?
|
||
|
||
def initialize(bot, parent_node = nil, options = {}, &block)
|
||
@bot = bot
|
||
@parent_node = parent_node
|
lib/cyborghood/cyborg/dsl.rb | ||
---|---|---|
|
||
module CyborgHood
|
||
module DSL
|
||
class BaseDSL < ActiveSupport::BasicObject
|
||
reveal :class
|
||
reveal :logger
|
||
class BaseDSL
|
||
include I18nTranslation
|
||
end
|
||
|
||
class TaskBase < BaseDSL
|
Also available in: Unified diff
[fix] DSL: do not hide original methods anymore, as we need too much things (class/is_a?/respond_to?/…, logger, I18n stuff…)