First page Back Continue Last page Overview Graphics
Ruby Types
Ruby, like Python, is a dynamically typed language.
- The type of a variable depends upon what was last assigned to it.
- A variable can hold many different types during the lifetime of a script.
Ruby supports many types:
- Array, Hash, String, Float, Integer, Regexp, Thread, Exception, IO, Time and more.
As with several other object-oriented languages, the Object class is the root of all types.