Sha256: b1d10d107b392732035661ae043be9ad9d1197ad851b38a4a7070d82916d475f

Contents?: true

Size: 385 Bytes

Versions: 22

Compression:

Stored size: 385 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ruboty-1.3.1 lib/ruboty/brains/base.rb
ruboty-1.3.0 lib/ruboty/brains/base.rb
ruboty-1.2.4 lib/ruboty/brains/base.rb
ruboty-1.2.3 lib/ruboty/brains/base.rb
ruboty-1.2.2 lib/ruboty/brains/base.rb
ruboty-1.2.1 lib/ruboty/brains/base.rb
ruboty-1.2.0 lib/ruboty/brains/base.rb
ruboty-1.1.9 lib/ruboty/brains/base.rb
ruboty-1.1.8 lib/ruboty/brains/base.rb
ruboty-1.1.7 lib/ruboty/brains/base.rb
ruboty-1.1.6 lib/ruboty/brains/base.rb
ruboty-1.1.5 lib/ruboty/brains/base.rb
ruboty-1.1.4 lib/ruboty/brains/base.rb
ruboty-1.1.3 lib/ruboty/brains/base.rb
ruboty-1.1.2 lib/ruboty/brains/base.rb
ruboty-1.1.1 lib/ruboty/brains/base.rb
ruboty-1.1.0 lib/ruboty/brains/base.rb
ruboty-1.0.4 lib/ruboty/brains/base.rb
ruboty-1.0.3 lib/ruboty/brains/base.rb
ruboty-1.0.2 lib/ruboty/brains/base.rb