# File lib/json-schema/util/array_set.rb, line 6 def include?(obj) # On first invocation create a HASH (yeah, yeah) to act as our set given the array values if !defined? @array_values @array_values = {} self.each {|x| @array_values[x] = 1} end @array_values.has_key? obj end