るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. kernel p
  5. rsa p

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

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

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

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

Pathname#expand_path(default_dir = &#39;.&#39;) -> Pathname (24578.0)

Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

...Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

@param default_dir self が相対パスであれば default_dir を基準に展開されます。

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

path
= Pathname("testfile")
Path
name.pwd # => #<Pathname:/path/to>
path
.expand_...
...path # => #<Pathname:/path/to/testfile>
path
.expand_path("../") # => #<Pathname:/path/testfile>
//}

@see File.expand_path...

URI::Generic#path -> String | nil (24284.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 #=> nil
p
URI...
...('ftp://example.com/foo').path #=> 'foo'
p
URI('ftp://example.com/%2Ffoo').path #=> '/foo'...

Tempfile#path -> String | nil (24232.0)

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

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

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

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

LoadError#path -> String | nil (24230.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 (24230.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"
//}...

UNIXSocket#path -> String (24220.0)

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

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

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

例:

require
'socket'

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

Rake::PackageTask#package_dir_path -> String (21314.0)

パッケージに含むファイルを配置するディレクトリを返します。

...パッケージに含むファイルを配置するディレクトリを返します。

//emlist[][ruby]{
# Rakefile での記載例とする
require
'rake/packagetask'

Rake::PackageTask.new("sample", "1.0.0") do |package_task|
p
ackage_task.package_dir_path # => "pkg/sample-1.0.0"
end
//}...

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

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

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

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

@see Gem::Specification#require_paths=...
<< 1 2 3 ... > >>