Ruby
"I always thought Smalltalk would beat Java. I just didn’t know it would be called ‘Ruby’ when it did”
- Kent Beck
To download: https://www.ruby-lang.org/en/downloads/
Ruby Language:
- Generic, interpreted, reflective, with garbage collection
- Optimized for people rather than computers
- More powerful than Perl, more object oriented than Python
- Everything is an object. There are no primitive types.
- Strong dynamic typing
Everything in Ruby is:
- Assignment – binding names to objects
- Control structures – if/else, while, case
- Sending messages to objects – methods
Ruby is Line Oriented
- Statements are separated by line breaks
- You can put several statements on one line if you separate them by semicolon
- For long statements you can escape the line break with backslash
- After an operator, comma, or the dot in a method invocation you can have a line break and Ruby will know that the statement continues on the next line
- You can have line breaks in strings
For Quick Start follow the link:
In next post you will get introduction of Ruby class.
No comments:
Post a Comment