Object Initialization error in SU2024

Hi,
I am testing this code snippet in Ruby console of SU2024, but getting error.
Tested in older versions and working fine,
What am I doing wrong?
Please help me

class Test_1

def initialize
# create dir if it doesn’t exist
puts “testing”

end

end
=> :initialize
Test_1.new
Error: #<TypeError: allocator undefined for Test_1>

Replace the “” by straight ones

puts "testing"

The code block needs to be surrounded by triple back ticks when posted on the forum, else the forum formatter converts straight quotes to smart quotes. As is, we can’t tell from the OP’s post whether this is the issue or not!