るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.036秒)
トップページ > クエリ:_builtin[x] > クエリ:exp[x] > バージョン:3.0[x] > クエリ:==[x] > クエリ:eql?[x]

別のキーワード

  1. _builtin exp
  2. _builtin min_10_exp
  3. _builtin max_10_exp
  4. _builtin max_exp
  5. _builtin min_exp

ライブラリ

クラス

検索結果

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

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

otherが同じパターン、オプション、文字コードの正規表現であったら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
//}