lib/poke_getter/poke.rb
# check for duplicate attributes. there should be many. whats the real deal with them?
check for duplicate attributes. there should be many.
check for duplicate attributes . there should be many .
def evaluate_attributes_list
        a = self.attributes_list
        freq = Hash.new(0)
        a.each {|x| freq[x] +=1}
        b = Array.new
        freq.map{|key, value| "#{key}x#{value}" if value > 1}
        return b
    end
def evaluate_attributes_list a = self . attributes_list freq = Hash . new ( 0 ) a . each { | x | freq [ x ] += 1 } b = Array . new freq . map { | key , value | "#{key}x#{value}" if value > 1 } return b end
check for duplicate attributes.
check for duplicate attributes .
# set variable for simplicity # check frequency of word