Kang-Kyu Lee

October 31, 2024

Ruby shorts 2

in Ruby, everything has its "class"
Even the numbers. 1.class will give you Integer.

One more thing. You can make your own class with the "class" keyword. 

class YourClass
end

yours = YourClass.new # remember "new" here
yours.class

will return "YourClass"

See you next time!