Tbpgr Blog

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

2014-11-19から1日間の記事一覧

Ruby | Regexp | == / eql?

概要 Regexp#self == other -> bool Regexp#eql?(other) -> bool 詳細 otherが同じパターン、オプション、文字コードの正規表現であったらtrueを返却。 サンプルコード require 'tbpgr_utils' bulk_puts_eval binding, <<-EOS /h.ge/ == /h.ge/ /h.ge/ == Re…