Hey everyone! I was wondering how the methods in Ruby that aren’t called with the syntax ClassName.method_name work. Some off the top of my head are puts, print, gets, chomp. These methods can be called without using the dot operator. Why is this? Where do they come from? And how can I see the full list of such methods?
Hey everyone! I was wondering how the methods in Ruby that aren’t called with
Share
All methods in
Kernelwill be available to all objects of classObjector any class derived fromObject. You can useKernel.instance_methodsto list them.