Class: Cuttlebone::Drivers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cuttlebone/drivers/base.rb

Direct Known Subclasses

Rack, Shell, XMPP

Instance Method Summary collapse

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

#runObject

Raises:

  • (NotImplementedError)


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

#sessionsObject



6
7
8
# File 'lib/cuttlebone/drivers/base.rb', line 6

def sessions
  Cuttlebone::Session.sessions
end