module Ruboty
module Brains
class Base
include Env::Validatable
class << self
def inherited(child)
brain_classes << child
end
def find_class
brain_classes.last
end
def brain_classes
@brain_classes ||= []
end
end
def initialize
validate!
end
end
end
end