Class: Ruboty::Brains::Base
- Inherits:
-
Object
- Object
- Ruboty::Brains::Base
- Includes:
- Env::Validatable
- Defined in:
- lib/ruboty/brains/base.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods included from Env::Validatable
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
20 21 22 |
# File 'lib/ruboty/brains/base.rb', line 20 def initialize validate! end |
Class Method Details
.brain_classes ⇒ Object
15 16 17 |
# File 'lib/ruboty/brains/base.rb', line 15 def brain_classes @brain_classes ||= [] end |
.find_class ⇒ Object
11 12 13 |
# File 'lib/ruboty/brains/base.rb', line 11 def find_class brain_classes.last end |
.inherited(child) ⇒ Object
7 8 9 |
# File 'lib/ruboty/brains/base.rb', line 7 def inherited(child) brain_classes << child end |