Class: Cuttlebone::Drivers::Base
- Inherits:
-
Object
- Object
- Cuttlebone::Drivers::Base
- Defined in:
- lib/cuttlebone/drivers/base.rb
Instance Method Summary collapse
-
#initialize(*stack_objects) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
- #sessions ⇒ Object
Constructor Details
#initialize(*stack_objects) ⇒ Base
Returns a new instance of Base.
2 3 4 |
# File 'lib/cuttlebone/drivers/base.rb', line 2 def initialize *stack_objects Cuttlebone::Session.set_default *stack_objects end |
Instance Method Details
#run ⇒ Object
10 11 12 |
# File 'lib/cuttlebone/drivers/base.rb', line 10 def run raise NotImplementedError, "You must implement #run in your #{send(:class).name}!" end |
#sessions ⇒ Object
6 7 8 |
# File 'lib/cuttlebone/drivers/base.rb', line 6 def sessions Cuttlebone::Session.sessions end |