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)


62
63
64
# File 'lib/parser/parser_state.rb', line 62

def eql? other
  self == other
end

#hashObject



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

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