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)


60
61
62
# File 'lib/parser/parser_state.rb', line 60

def eql? other
  self == other
end

#hashObject



56
57
58
# File 'lib/parser/parser_state.rb', line 56

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