class Bar < Struct.new(:x)という書き方は便利だけど、ancestor chainにStruct.newのインスタンスが混ざってしまう。

lam_bdalam_bda のブックマーク 2014/09/28 11:45

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Various ways to create structs ·

    The first chapter of Understanding Computation does a whirlwind tour of Ruby programming - syntax, control structures, etc. One of the constructs the author calls out is the Struct class. I've alwa...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう