Class: Cucumber::Distrib::Events::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/distrib/events.rb

Overview

Base class for converted events.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.event_idString

Used internaly by Cucumber.

Returns:

  • (String)


89
90
91
92
# File 'lib/cucumber/distrib/events.rb', line 89

def self.event_id
  # It uses custom logic for `underscore` method.
  ::Cucumber::Core::Event.__send__(:underscore, name.split('::').last).to_sym
end

Instance Method Details

#metadataHash

Add custom metadata to events so we can transfer it between workers and Leader. Should contain only Marshalable objects.

Returns:

  • (Hash)


98
99
100
# File 'lib/cucumber/distrib/events.rb', line 98

def 
   ||= {}
end