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

メタプログラミングRuby問題集の活用

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 メタプログラミングRuby問題集の活用

RubyWorld Conference2025での発表資料です

Avatar for Shinichi Maeshima

Shinichi Maeshima

November 07, 2025
Tweet

More Decks by Shinichi Maeshima

Other Decks in Technology

Transcript

  1. 17 実際の出題 # Q1. # Hogeクラスは次の仕様を持つ # "hoge" という⽂字列の定数Hogeを持つ #

    "hoge" という⽂字列を返すhogehogeメソッドを持つ # HogeクラスのスーパークラスはStringである # ⾃⾝が"hoge"という⽂字列である時(HogeクラスはStringがスーパークラスなの で、当然⾃⾝は⽂字列である)、trueを返すhoge?メソッドが定義されている class Hoge end https://github.com/kinoppyd/reading-metaprogramming-ruby/blob/master/02_object_model/01_hoge.rb
  2. 35

  3. 41

  4. 56