るりまサーチ

最速Rubyリファレンスマニュアル検索!
917件ヒット [1-100件を表示] (0.069秒)
トップページ > クエリ:IO[x] > クエリ:p[x] > クエリ:u[x] > クエリ:path[x]

別のキーワード

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

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

RubyVM::InstructionSequence#path -> String (30219.0)

self が表す命令シーケンスの相対パスを返します。

..."<compiled>" を返します。

例1:irb で実行した場合

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/meth...
...od.rb
def hello
p
uts "hello, world"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"

@see RubyVM::InstructionSequence#absolute_path...

Gem::QuickLoader#push_all_highest_version_gems_on_load_path (24401.0)

prelude.c で定義されている内部用のメソッドです。

...
p
relude.c で定義されている内部用のメソッドです。...

Gem::QuickLoader#push_gem_version_on_load_path (24401.0)

prelude.c で定義されている内部用のメソッドです。

...
p
relude.c で定義されている内部用のメソッドです。...

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

IO.foreach(path, rs = $/, chomp: false) -> Enumerator (21412.0)

path で指定されたファイルの各行を引数としてブロックを繰り返し実行します。 path のオープンに成功すれば nil を返します。

...
path
で指定されたファイルの各行を引数としてブロックを繰り返し実行します。
path
のオープンに成功すれば nil を返します。

ブロックが与えられなかった場合は、path で指定されたファイルの各行を繰り返す
Enumerator オブ...
...す。

path
が空ファイルの場合、何もせずに nil を返します。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。

@param path ファイル名を表す文字列か "|コマンド名" を指定します。

@param rs...
...ド)。

@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。

@raise Errno::EXXX path のオープンに失敗した場合、発生します。

//emlist[例:rs 指定なし][ruby]{
IO
.write("testfile", "line1\nline2,\nline3\n")
IO
.foreach(...

IO.foreach(path, rs = $/) -> Enumerator (21400.0)

path で指定されたファイルの各行を引数としてブロックを繰り返し実行します。 path のオープンに成功すれば nil を返します。

...
path
で指定されたファイルの各行を引数としてブロックを繰り返し実行します。
path
のオープンに成功すれば nil を返します。

ブロックが与えられなかった場合は、path で指定されたファイルの各行を繰り返す
Enumerator オブ...
...す。

path
が空ファイルの場合、何もせずに nil を返します。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。

@param path ファイル名を表す文字列か "|コマンド名" を指定します。

@param rs...
...)。


@raise Errno::EXXX path のオープンに失敗した場合、発生します。

//emlist[例:rs 指定なし][ruby]{
IO
.write("testfile", "line1\nline2,\nline3\n")
IO
.foreach("testfile") # => #<Enumerator: IO:foreach("testfile")>
IO
.foreach("testfile") { |x| print "GOT ", x }
# => GOT lin...

Thread::Backtrace::Location#absolute_path -> String (21331.0)

self が表すフレームの絶対パスを返します。

...][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
p
uts call.absolute_path
end

# => /path/to/foo.rb
# /path/to/foo.rb
# /path/to/foo.rb
//}

@see Thread::Backtrace::Location#path...

RubyVM::InstructionSequence#absolute_path -> String | nil (21319.0)

self が表す命令シーケンスの絶対パスを返します。

...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
p
uts "hello, world"
end

# irb
> iseq = Ruby...
...VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"

@see RubyVM::InstructionSequence#path...

Gem::Specification#full_gem_path -> String (21301.0)

この Gem パッケージへのフルパスを返します。

この Gem パッケージへのフルパスを返します。

絞り込み条件を変える

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

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

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

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