Introduction of Ruby
- Ruby draws inspiration from Lisp, Smalltalk & Perl.
- It is purely object oriented language but also suitable for procedural & functional programming styles.
- It can be used to create domain-specific languages or DSLs.
- Yukihiro Matsumoto (known as Matz) is creator of Ruby.
- irb (shorts for 'interactive Ruby') is a ruby shell
- 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
- Iterators & Blocks
- ability to associate a block of code with a method invocation
- Classes & Modules are 'open' & can be modified & extended at runtime
No comments:
Post a Comment