Wednesday, 8 October 2014

Introduction of Ruby

  1. Ruby draws inspiration from Lisp, Smalltalk & Perl.
  2. It is purely object oriented language but also suitable for procedural & functional programming styles.
  3. It can be used to create domain-specific languages or DSLs.
  4. Yukihiro Matsumoto (known as Matz) is creator of Ruby.
  5. irb (shorts for 'interactive Ruby') is a ruby shell
  6. ri is documentation viewer                                                                                                             ri stands for Ruby Index/ Ruby Information/ Ruby Interactive                                                     e. g. ri Array  # provides documentation of Array Class    
     Features of Ruby
  1. Iterators & Blocks
  2. ability to associate a block of code with a method invocation
  3. Classes & Modules are 'open' & can be modified & extended at runtime



No comments:

Post a Comment