るりまサーチ

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

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. socket udp_server_loop_on
  5. thread abort_on_exception

ライブラリ

検索結果

OpenSSL::X509::Extension#to_a -> [String, String, bool] (27404.0)

拡張領域の内容を、[識別子(extnID), 値(extnValue), 重要度(critical)] という 形で返します。

...拡張領域の内容を、[識別子(extnID), 値(extnValue), 重要度(critical)] という
形で返します。...

OptionParser#to_a -> [String] (27327.0)

サマリの各行を要素とした配列を返します。

...列を返します。

//emlist[例][ruby]{
require "optparse"

opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --help\n"]
//}...

MatchData#deconstruct -> [String] (9421.0)

$1, $2, ... を格納した配列を返します。

...す。

MatchData#to_a と異なり $& を要素に含みません。
グループにマッチした部分文字列がなければ対応する要素は nil になります。

//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
p $~.captures #...
...=> ["foo", "bar", nil]
//}

@see MatchData#to_a, MatchData#named_captures, d:spec/pattern_matching#matching_non_primitive_objects...