174件ヒット
[1-100件を表示]
(0.022秒)
種類
- インスタンスメソッド (96)
- 特異メソッド (78)
ライブラリ
- ビルトイン (108)
-
rubygems
/ installer (24) -
rubygems
/ source _ index (12) -
rubygems
/ specification (12) -
rubygems
/ uninstaller (12) - shell (6)
クラス
-
Gem
:: Installer (24) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (12) -
Gem
:: Uninstaller (12) -
RubyVM
:: InstructionSequence (84) - Shell (6)
-
Thread
:: Backtrace :: Location (12) - TracePoint (12)
キーワード
-
absolute
_ path (12) - compile (12)
-
compile
_ file (12) - inspect (36)
-
install
_ system _ commands (6) -
installation
_ path (12) -
installed
_ spec _ directories (12) - new (12)
-
path
_ ok? (12) -
path
_ warning (12) -
path
_ warning= (12) -
to
_ a (12)
検索結果
先頭5件
-
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
}
}...