213件ヒット
[201-213件を表示]
(0.087秒)
別のキーワード
ライブラリ
- ビルトイン (201)
-
json
/ add / regexp (12)
検索結果
-
Regexp
# to _ json(*args) -> String (3108.0) -
自身を JSON 形式の文字列に変換して返します。
...nerator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json
に渡されます。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json # => "{\"json_class\":\"Regexp\"... -
Regexp
# casefold? -> bool (3008.0) -
正規表現が大文字小文字の判定をしないようにコンパイルされている時、 真を返します。
...正規表現が大文字小文字の判定をしないようにコンパイルされている時、
真を返します。
//emlist[例][ruby]{
reg = Regexp.new("foobar", Regexp::IGNORECASE)
p reg.casefold? # => true
reg = Regexp.new("hogehoge")
p reg.casefold? # => false
//}...