るりまサーチ

最速Rubyリファレンスマニュアル検索!
1147件ヒット [1-100件を表示] (0.051秒)
トップページ > クエリ:path[x] > クエリ:require[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. pstore path

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Kernel#require(path) -> bool (18247.0)

RubyGems を require すると、Kernel#require が Gem を 要求されたときにロードするように置き換えます。

...RubyGems を require すると、Kernel#require が Gem を
要求されたときにロードするように置き換えます。

再定義された Kernel#require を呼び出すと以下の事を行います。
Ruby のロードパスに存在するライブラリを指定した場合はその...
...く、インストールされた Gem ファイルの中から見つかった場合は、
その Gem をロードパスに登録します。

@param path ロードしたいライブラリの名前を指定します。

@return 既にロードされているライブラリを再度ロードしよう...

Gem::RequirePathsBuilder#write_require_paths_file_if_needed(spec = @spec, gem_home = @gem_home) (18218.0)

必要であれば、'.require_paths' というファイルを Gem ごとに作成します。

...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。...

URI::Generic#path -> String | nil (18154.0)

自身の path を文字列で返します。設定されていない場合は nil を返します。

...自身の path を文字列で返します。設定されていない場合は nil を返します。

require
'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> n...
...il
p URI('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'...

LoadError#path -> String | nil (18130.0)

Kernel.#require や Kernel.#load に失敗したパスを返します。

...Kernel.#require や Kernel.#load に失敗したパスを返します。

begin
require
'this/file/does/not/exist'
rescue LoadError => e
e.path # => 'this/file/does/not/exist'
end

パスが定まらない場合は nil を返します。...

Net::HTTPGenericRequest#path -> String (18130.0)

リクエストする path を文字列で返します。

...リクエストする path を文字列で返します。

//emlist[例][ruby]{
require
'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}...

絞り込み条件を変える

Tempfile#path -> String | nil (18120.0)

テンポラリファイルのパス名を返します。

...テンポラリファイルのパス名を返します。

Tempfile#close! を実行後だった場合にはnilを返します。

require
"tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil...

UNIXSocket#path -> String (18114.0)

UNIX ソケットのパスを返します。

...UNIX ソケットのパスを返します。

クライアント側はパスを持たないため空文字列となります。

例:

require
'socket'

UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}...

Gem::Specification#require_path=(path) (12338.0)

Gem::Specification#require_paths= の単数バージョンです。

...Gem::Specification#require_paths= の単数バージョンです。

@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。

@see Gem::Specification#require_paths=...

Gem::Specification#require_paths=(paths) (12324.0)

この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ のリストをセットします。

...この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリストをセットします。

@param paths この Gem パッケージを使用した際に require するファイルが置かれているディレクトリ
のリ...

Gem::Specification#require_path -> String (12225.0)

Gem::Specification#require_paths の単数バージョンです。

...Gem::Specification#require_paths の単数バージョンです。

@see Gem::Specification#require_paths...

絞り込み条件を変える

<< 1 2 3 ... > >>