Tbpgr Blog

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

2014-12-09から1日間の記事一覧

Ruby | String | ==

概要 String#self == other -> bool String#self === other -> bool 詳細 other が文字列の場合、文字列の内容を比較( String#eql? と同じ)。 other が文字列でない場合、 other.to_str が定義されていれば other == self の結果を返します。 (ただし、 othe…