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

Ruby 2.0

Ruby 2.0

「Ruby 2.0」@デブサミ2013

Yukihiro Matsumoto

February 14, 2013
Tweet

More Decks by Yukihiro Matsumoto

Other Decks in Programming

Transcript

  1. Powered by Rabbit 1.0.4 Ruby 2.0 Rubyアソシエーション 理事長 Heroku, Chief

    Architect, Ruby @yukihiro_matz Yukihiro "Matz" Matsumoto
  2. Powered by Rabbit 1.0.4   1996年12月 1.0 1997年08月 1.1 1998年12月

    1.2 1999年08月 1.4 2000年09月 1.6 5/97
  3. Powered by Rabbit 1.0.4 キーワード引数 def downto(from, to, step: 1)

    ... end downto(10, 0, step:2) do|i| p i end 44/97
  4. Powered by Rabbit 1.0.4 Module#prepend class Foo def foo; p

    :foo; end end module Prepend def foo p :before super p :after end end class Foo prepend Prepend end Foo.new.foo 54/97
  5. Powered by Rabbit 1.0.4 Refinements module R refine String do

    def foo ... end end end "".foo # => error! using R "".foo 61/97