サクサク読めて、アプリ限定の機能も多数!
class Bar < Struct.new(:x)という書き方は便利だけど、ancestor chainにStruct.newのインスタンスが混ざってしまう。
lam_bda のブックマーク 2014/09/28 11:45
Various ways to create structs ·[ruby] class Bar < Struct.new(:x)という書き方は便利だけど、ancestor chainにStruct.newのインスタンスが混ざってしまう。2014/09/28 11:45
class Bar < Struct.new(:x)という書き方は便利だけど、ancestor chainにStruct.newのインスタンスが混ざってしまう。
このブックマークにはスターがありません。 最初のスターをつけてみよう!
thomasleecopeland.com2014/09/28
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...
8 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
class Bar < Struct.new(:x)という書き方は便利だけど、ancestor chainにStruct.newのインスタンスが混ざってしまう。
lam_bda のブックマーク 2014/09/28 11:45
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Various ways to create structs ·
thomasleecopeland.com2014/09/28
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...
8 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /