Class: Ruboty::Adapters::Base

Inherits:
Object
  • Object
show all
Includes:
Env::Validatable
Defined in:
lib/ruboty/adapters/base.rb

Direct Known Subclasses

Shell

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Env::Validatable

#validate, #validate!

Constructor Details

#initialize(robot) ⇒ Base

Returns a new instance of Base.



15
16
17
18
# File 'lib/ruboty/adapters/base.rb', line 15

def initialize(robot)
  @robot = robot
  validate
end

Instance Attribute Details

#robotObject (readonly)

Returns the value of attribute robot.



13
14
15
# File 'lib/ruboty/adapters/base.rb', line 13

def robot
  @robot
end

Class Method Details

.inherited(child_class) ⇒ Object



8
9
10
# File 'lib/ruboty/adapters/base.rb', line 8

def inherited(child_class)
  Ruboty::AdapterBuilder.adapter_classes << child_class
end