Class: JsonProjection::StreamEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/json-projection/parser/events.rb

Overview

Sum type

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.emptyObject



6
7
8
# File 'lib/json-projection/parser/events.rb', line 6

def self.empty
  @empty ||= new
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
# File 'lib/json-projection/parser/events.rb', line 10

def ==(other)
  other.is_a?(self.class)
end

#hashObject



14
15
16
# File 'lib/json-projection/parser/events.rb', line 14

def hash
  self.class.hash
end