Sha256: 70d9bc9661a5b2ab8abd2a073bb8e1ab1a84df17bf33213c21d10426251a356a
Contents?: true
Size: 225 Bytes
Versions: 13
Compression:
Stored size: 225 Bytes
Contents
class CharCountWorker < BaseRequestWorker virtual_topic 'test_string' response :marshal => :bson, :time_to_live => 5000 def request(obj) hash = Hash.new(0) obj.each_char {|c| hash[c] += 1} hash end end
Version data entries
13 entries across 13 versions & 1 rubygems