3 ms·Another option (that I prefer): x = Object.new def x.foo puts 'bar' endby Spakman 14y agoAnother option (that I prefer): x = Object.new def x.foo puts 'bar' end