るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.095秒)
トップページ > クエリ:l[x] > クエリ:exp[x] > クエリ:try_convert[x]

別のキーワード

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

ライブラリ

クラス

検索結果

Regexp.try_convert(obj) -> Regexp | nil (21313.0)

obj を to_regexp メソッドで Regexp オブジェクトに変換しようと 試みます。

...obj を to_regexp メソッドで Regexp オブジェクトに変換しようと
試みます。

変換に成功した場合はそれを返し、失敗時には nil を返します。

//emlist[例][ruby]{
Regexp.try_convert(/re/) # => /re/
Regexp.try_convert("re") # => nil
//}...