Class: Plumbing::Event

Inherits:
Literal::Data
  • Object
show all
Defined in:
lib/plumbing/event.rb

Overview

Base class for pipeline events: an immutable, value-comparable Literal::Data. Subclasses declare their payload with prop. Because Literal::Data is frozen and hashes on its properties, equal events are interchangeable and can be used as Set keys (which is how the pipeline debounces duplicates).