Introduction to

Ruby





Philosophy of Ruby


Matsumoto has said that Ruby is designed for programmer productivity and fun, following the principles of good user interface design. He stresses that systems design needs to emphasize human, rather than computer, needs.”

INITIAL questions




INSTAllation



  1. Source code 
  2. Third party tool
  3. Package management system






HOW

And

 WHERE

syntax and conventions



  1. Variables
  2. Class
  3. Methods




Operators

Arithmetic Operators


comparison operators

Assignment operators

Parallel assignment



bitwise operators

a = 60 or 0011 1100
b = 13 or 0000 1101

logical operators

ternary operators






Assignment




Features ->


Interpreted scripting language




  • Ability to make operating system calls directly
  • Powerful string operations and regular expressions.


quick and easy



  • Variable declaration are unnecessary.
  • Variable are not typed.
  • Simple and consistent syntax.

object oriented


  • Everything is object
  • Class, Object, Method, Inheritance etc.
  • "mixin" functionality by modules

Ruby

By apurva mayank