Mega Code Archive
Categories
/
Ruby
/
Reflection
The class method supercedes Objects deprecated method type, or gets the name of the class as a string with the name method
myString = "asdf" myString.class.name # => "String"