Class: Ellen::Adapters::Base
- Inherits:
-
Object
- Object
- Ellen::Adapters::Base
- Includes:
- Env::Validatable
- Defined in:
- lib/ellen/adapters/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#robot ⇒ Object
readonly
Returns the value of attribute robot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(robot) ⇒ Base
constructor
A new instance of Base.
Methods included from Env::Validatable
Constructor Details
#initialize(robot) ⇒ Base
Returns a new instance of Base.
15 16 17 18 |
# File 'lib/ellen/adapters/base.rb', line 15 def initialize(robot) @robot = robot validate end |
Instance Attribute Details
#robot ⇒ Object (readonly)
Returns the value of attribute robot.
13 14 15 |
# File 'lib/ellen/adapters/base.rb', line 13 def robot @robot end |
Class Method Details
.inherited(child_class) ⇒ Object
8 9 10 |
# File 'lib/ellen/adapters/base.rb', line 8 def inherited(child_class) Ellen::AdapterBuilder.adapter_classes << child_class end |