class JsonProjection::Key

Attributes

key[R]

Public Class Methods

new(key) click to toggle source
# File lib/json-projection/parser/events.rb, line 40
def initialize(key)
  @key = key
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method JsonProjection::StreamEvent#==
# File lib/json-projection/parser/events.rb, line 44
def ==(other)
  return false unless super(other)
  return key == other.key
end
hash() click to toggle source
# File lib/json-projection/parser/events.rb, line 49
def hash
  key.hash
end