class MyClass def say_hello_three_times 3.times { puts "hello"} end end MyClass.new.say_hello_three_times