Class: Dhaka::ItemSet

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/parser/parser_state.rb', line 68

def eql? other
  self == other
end

#hashObject



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

def hash
  collect{|item| item.hash}.inject{|result, hashcode| result ^ hashcode}
end