1142件ヒット
[1-100件を表示]
(0.147秒)
別のキーワード
ライブラリ
- ビルトイン (318)
- etc (12)
-
irb
/ cmd / load (24) -
json
/ add / exception (12) - logger (12)
- mkmf (12)
-
net
/ http (264) - optparse (24)
- pathname (284)
- rake (36)
-
rake
/ packagetask (12) -
rexml
/ document (60) - rubygems (12)
-
rubygems
/ custom _ require (12) -
rubygems
/ gem _ path _ searcher (12) - socket (24)
- win32ole (12)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Dir (24)
-
Encoding
:: Converter (12) - Exception (24)
- File (24)
-
File
:: Stat (24) -
Gem
:: GemPathSearcher (12) - IO (54)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) - Logger (12)
-
Net
:: HTTP (216) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (12) - OptionParser (24)
- Pathname (284)
- Proc (12)
-
REXML
:: Element (36) -
REXML
:: Elements (24) -
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) -
RubyVM
:: InstructionSequence (48) - Thread (24)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Kernel (36)
キーワード
- <=> (24)
-
absolute
_ path (24) -
backtrace
_ locations (24) - binread (12)
-
body
_ stream (12) -
body
_ stream= (12) - children (12)
- chown (12)
- cleanpath (12)
- convpath (12)
-
create
_ makefile (12) - delete (12)
- dirname (12)
- each (12)
-
each
_ child (24) -
each
_ entry (12) -
each
_ line (24) - entries (12)
- execute (24)
-
family
_ addrinfo (24) - filename (12)
- formatter (12)
- gem (12)
- get (24)
- get2 (24)
-
get
_ text (12) - glob (8)
- head (12)
- head2 (24)
- inspect (36)
- join (12)
-
lib
_ dirs _ for (12) - load (12)
-
original
_ dir (12) -
package
_ dir _ path (12) - pathconf (12)
- pathmap (12)
- post (24)
- post2 (24)
-
program
_ name (12) -
program
_ name= (12) -
read
_ body (12) - realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) - reopen (36)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
send
_ request (12) -
set
_ backtrace (12) - size? (12)
-
source
_ location (12) - split (12)
- text (12)
-
to
_ a (24) -
to
_ json (12) -
to
_ path (27) -
to
_ s (24) - unlink (12)
- xpath (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # path -> String (53320.0) -
self が表す命令シーケンスの相対パスを返します。
...piled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::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::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (41320.0) -
self が表す命令シーケンスの絶対パスを返します。
...nil を返します。
例1:irb で実行した場合
iseq = RubyVM::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::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # inspect -> String (41319.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # to _ a -> Array (35137.0) -
self の情報を 14 要素の配列にして返します。
...ます。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
デー......1。
: misc
以下の要素から構成される Hash オブジェクト。
:arg_size: メソッド、ブロックが取る引数の総数(1 つもない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出......in>"。文字列から作成していた場合は
"<compiled>"。
: #path
命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_li... -
Net
:: HTTPGenericRequest # path -> String (24336.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"
//}... -
Dir
# path -> String (24327.0) -
オープンしているディレクトリのパス名を文字列で返します。
...オープンしているディレクトリのパス名を文字列で返します。
//emlist[例][ruby]{
Dir.open("..") do |d|
d.path # => ".."
d.to_path # => ".."
end
//}... -
Thread
:: Backtrace :: Location # path -> String (24326.0) -
self が表すフレームのファイル名を返します。
...self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path... -
TracePoint
# path -> String (24326.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
Pathname
# realdirpath(basedir = nil) -> Pathname (21543.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......me"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT......//}
@see Pathname#realpath...