るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.013秒)
トップページ > ライブラリ:uri[x] > クエリ:component[x] > バージョン:2.5.0[x] > クエリ:select[x]

別のキーワード

  1. tsort each_strongly_connected_component
  2. tsort each_strongly_connected_component_from
  3. uri component
  4. matrix component
  5. generic component

クラス

検索結果

URI::Generic#select(*components) -> [String] (54628.0)

指定された components に対応する構成要素を文字列の配列として返します。

...字列の配列として返します。

@param components 構成要素名をシンボルで指定します。

例:
require 'uri'

uri
= URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:mypass", "my.example.com", "/test.rbx"]...