2019-04-01から1ヶ月間の記事一覧
Ruby の trunk にパータンマッチ構文が実験的に導入されました。 Introduce pattern matching [EXPERIMENTAL] · ruby/ruby@9738f96 · GitHub Feature #14912: Introduce pattern matching syntax - Ruby trunk - Ruby Issue Tracking System NOTE: 実験的に…
最近気づいたんですが、 継承したスーパークラスのクラスメソッドをサブクラスから呼べる mixin したモジュールのクラスメソッドは呼べない っていう違いがあるんですね。 class Super def self.super_class_method "Super#super_class_method" end def supe…