るりまサーチ

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

別のキーワード

  1. streamui ins
  2. rubygems/user_interaction ins
  3. ins
  4. ins_methods_i
  5. ins gem::streamui

検索結果

<< 1 2 > >>

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

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

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

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

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

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

@see RubyVM::InstructionSequence#absolute_path...

Gem::Specification#installation_path -> String (12201.0)

この Gem パッケージのインストール先のパスを返します。

この Gem パッケージのインストール先のパスを返します。

Gem::Installer.path_warning=(flag) (9123.0)

Gem.bindir が PATH に含まれていない場合に警告を表示するかどうかセットします。

...Gem.bindir が PATH に含まれていない場合に警告を表示するかどうかセットします。

@param flag 真を指定すると、Gem.bindir が PATH に含まれていない場合に警
告を表示するようになります。...

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

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

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

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

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

# irb
> iseq = RubyVM::Inst...
...ructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"

@see RubyVM::InstructionSequence#path...

Gem::Installer.path_warning -> bool (9117.0)

この値が 真の場合は Gem.bindir が PATH に含まれていない場合に警告を表示します。

...この値が 真の場合は Gem.bindir が PATH に含まれていない場合に警告を表示します。...

絞り込み条件を変える

RubyVM::InstructionSequence#inspect -> String (9106.0)

self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。

...んだ人間に読みやすい文字列にして返します。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}

@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path...

Gem::Uninstaller#path_ok?(spec) -> bool (9101.0)

アンインストール指定されている Gem がインストールされているパスをチェックします。

アンインストール指定されている Gem がインストールされているパスをチェックします。

@param spec Gem::Specification を指定します。

Thread::Backtrace::Location#inspect -> String (6118.0)

Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。

...][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|
puts call.inspect
end

# => "path/to/foo.rb:5:in `initialize'"
# "path/to/foo.rb:9:in `new'"
# "path/to/foo.rb:9:in `<main>'"
//}...

Shell.install_system_commands(pre = "sys_") -> () (6116.0)

system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.

...system_path上にある全ての実行可能ファイルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.

@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。

使用例: ls -l | head -n 5...
...のような例。

require 'shell'
Shell.install_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}...
<< 1 2 > >>