Lines Matching defs:hash
31 # Object#eql? and Object#hash, since Set uses Hash as storage.
74 @hash ||= Hash.new
96 # Copy internal hash.
98 @hash = orig.instance_variable_get(:@hash).dup
103 @hash.freeze
109 @hash.taint
115 @hash.untaint
121 @hash.size
127 @hash.empty?
132 @hash.clear
140 @hash.replace(enum.instance_variable_get(:@hash))
151 @hash.keys
191 @hash.include?(o)
232 @hash.each_key(&block)
239 @hash[o] = true
257 @hash.delete(o)
275 to_a.each { |o| @hash.delete(o) if yield(o) }
283 to_a.each { |o| @hash.delete(o) unless yield(o) }
318 @hash.update(enum.instance_variable_get(:@hash))
372 @hash == other.instance_variable_get(:@hash)
374 other.all? { |o| @hash.include?(o) }
380 def hash # :nodoc:
381 @hash.hash
386 @hash.eql?(o.instance_variable_get(:@hash))
390 # returns a hash of {value => set of elements} pairs. The block is
398 # hash = files.classify { |f| File.mtime(f).year }
399 # p hash # => {2000=>#<Set: {"a.rb", "b.rb"}>,
544 @hash = RBTree.new
580 @hash.delete(o)
586 n = @hash.size
588 @keys = nil if @hash.size != n
594 n = @hash.size
596 @keys = nil if @hash.size != n
612 (@keys = @hash.keys).sort! unless @keys
674 # @hash[o] = true if @proc.call(self, o)
683 # @hash[o] = true
707 # @hash[o] = true
717 # @hash[o] = true