Profile
Sign out
menu
create
New Post
My learned
Sign In
.class
Ruby
This method can be used to know the class of an object, which allows you to inspect and work with the class itself, rather than just the object.
Example:
"Hello".class # => String 10.class # => Number 10.0.class # => Float
arrow_back
back