Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-06-21から1日間の記事一覧

Ruby | Method#==

概要 Method##== 詳細 自身と other が同じインスタンスの同じメソッドを表す場合に true を返却。 そうでない場合に false を返却。 サンプルコード require 'tbpgr_utils' class Hoge1 def hoge 'hoge' end end class Hoge2 def hoge 'hoge' end end h1 = …