るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.125秒)
トップページ > バージョン:2.6.0[x] > 種類:インスタンスメソッド[x] > クエリ:on[x] > クラス:URI::Generic[x]

別のキーワード

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

ライブラリ

キーワード

検索結果

URI::Generic#component -> [Symbol] (18307.0)

self.class.component を返します。

...self.class.component を返します。

@see URI::Generic.component...

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

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

指定された 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"]