Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby 2.0

Ruby 2.0

A brief introduction to Ruby 2.0.

Avatar for Mohamed Magdy

Mohamed Magdy

April 24, 2013

Other Decks in Programming

Transcript

  1. Agenda • What's new in Ruby 2.0? – Intro –

    Installation – What's new? • Hicks and tricks (not Ruby only)
  2. What's new in Ruby 2.0? • Ruby 2.0 was released

    in Feb 24th, 2013. 2 months back • 100% Ruby 2.0 is backward comaptible ~ Matz • Awesome new features (coming on)
  3. Installation • RVM – rvm get stable • Mine is

    rvm 1.19.1 – rvm install ruby-2.0.0 • Today ruby 2.1.0dev (with rvm install ruby-head)
  4. So what's new? • Refinements • Module#prepend • Enumerable#lazy •

    Keyword arguments • %i or %I • Garbage collector (maybe discussed later)
  5. Module#prepend (5) • What if I want to extend the

    "foo" method without "alias_method_chain"?
  6. Credits • Most of the contents (almost all) are cited

    from Akira Matsuda – http://www.youtube.com/watch?v=RHcXC9R Ojlw – https://speakerdeck.com/a_matsuda/ruby-2- dot-0-on-rails