Sha256: eff8107a1b35f61c701a7523ac8a406ba38a984ffe0433e2f1f93d7c2e672bc6

Contents?: true

Size: 382 Bytes

Versions: 10

Compression:

Stored size: 382 Bytes

Contents

{
 "question" : {
    "id": "",
    "category": "ruby",
    "nerd_level": 1,
    "text":"Which one will sum up an array of numbers?",
    "a1": "[1,2,3].sum",
    "a2": "[1,2,3].flatten!.inject(&:+)",
    "a3": "[1,2,3].reduce{|remainder,n| remainder + n}",
    "a4": "[1,2,3].sum(&:add)",
    "right_answer":"a3",
    "created_at": "2011-06-09",
    "created_by": "kangguru"
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
muzang-plugins-1.1.6 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.1.5 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.1.4 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.1.3 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.1.2 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.1.1 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.1.0 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.0.2 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.0.1 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json
muzang-plugins-1.0.0 lib/muzang-plugins/muzang-nerdpursuit/questions/ruby/sum_things_up.json