Ruby Gold

Ruby Association Certified Ruby Programmer Gold

MetaprogrammingEnglish
Exam overview

Practice session

What does the following output? class Foo [:a, :b, :c].each do |name| define_method(name) { name.to_s } end end puts Foo.new.b

Loading your practice session…