Class: Dynflow::Listeners::Abstract

Inherits:
Object
  • Object
show all
Includes:
Algebrick::TypeCheck
Defined in:
lib/dynflow/listeners/abstract.rb

Direct Known Subclasses

Socket

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(world) ⇒ Abstract

Returns a new instance of Abstract.



7
8
9
10
# File 'lib/dynflow/listeners/abstract.rb', line 7

def initialize(world)
  @world  = Type! world, World
  @logger = world.logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



5
6
7
# File 'lib/dynflow/listeners/abstract.rb', line 5

def logger
  @logger
end

#worldObject (readonly)

Returns the value of attribute world.



5
6
7
# File 'lib/dynflow/listeners/abstract.rb', line 5

def world
  @world
end

Instance Method Details

#terminate(future = Future.new) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/dynflow/listeners/abstract.rb', line 12

def terminate(future = Future.new)
  raise NotImplementedError
end