るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.122秒)

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p
  5. rsa p

ライブラリ

検索結果

Regexp#eql?(other) -> bool (6132.0)

otherが同じパターン、オプション、文字コードの正規表現であったらtrueを返します。

...たらtrueを返します。

@param other 正規表現を指定します。

//emlist[例][ruby]{
p
/^eee$/ == /~eee$/x # => false
p
/^eee$/ == /~eee$/i # => false
p
/^eee$/e == /~eee$/u # => false
p
/^eee$/ == Regexp.new("^eee$") # => true
p
/^eee$/.eql?(/^eee$/) # => true
//}...