Class: Dhaka::ItemSet

Inherits:
Set
  • Object
show all
Defined in:
lib/dhaka/parser/parser_state.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/dhaka/parser/parser_state.rb', line 70

def eql? other
  self == other
end

#hashObject



64
65
66
67
68
# File 'lib/dhaka/parser/parser_state.rb', line 64

def hash
  result = 5381
  each { |item| result ^= item.hash }
  result
end