Ruby Programming – Built-in Classes – String class
Everything is an object in Ruby. That means each symbol or variable you create must be an object of a Class. For example, if you type the string “Hello!”; that must be an object of the String class. Don’t you believe it? Here is an example. “Hello!”.class You will see the class name String will […]