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

Ruby2.7の機能を使いたくてruby-next使ってみた/try-using-ruby-next

 Ruby2.7の機能を使いたくてruby-next使ってみた/try-using-ruby-next

Masatoshi Moritsuka

July 25, 2020
Tweet

More Decks by Masatoshi Moritsuka

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ ➤ ৿௩ ਅ೥ ➤ GitHub: @sanfrecce-osaka ➤ Twitter: @sanfrecce_osaka

    ➤ Qiita: @sanfrecce_osaka ➤ 2019೥9݄: େࡕ → ொా ➤ גࣜձࣾϥάβΠΞ ➤ ruby-jpͷॅਓ ➤ ίϛϡχςΟɾษڧձΦλΫ
  2. But

  3. But

  4. ruby-next ➤ Ruby ΛτϥϯεύΠϧͯ͘͠ΕΔ Gem ➤ ΞϓϦέʔγϣϯଆ => ϥϯλΠϜϞʔυ ➤

    ϥΠϒϥϦଆ => CLI ͔ΒτϥϯεύΠϧ(ࠓճ͸ͬͪ͜) ➤ Refinements Λར༻͍ͯ͠Δ ➤ αϙʔτൣғ͕޿͍ ➤ https://github.com/ruby-next/ruby-next/blob/master/ SUPPORTED_FEATURES.md
  5. ஫ҙ఺ ➤ require_relative Ͱ͸ͳ͘ require Ͱͳ͍ͱͩΊ ➤ τϥϯεύΠϥ͸ rewirteϞʔυ ͱ

    ASTϞʔυ ͷ 2छ ➤ σϑΥϧτ͸ ASTϞʔυ ➤ 2.7ܥ Ͱ͸ rewriteϞʔυ ͷΈ ➤ ಛఆͷػೳ͸໌ࣔతʹΦϓγϣϯΛࢦఆ͢Δඞཁ͕͋Δ