156件ヒット
[101-156件を表示]
(0.068秒)
ライブラリ
- ビルトイン (60)
- pathname (12)
-
rdoc
/ top _ level (24) - resolv (12)
- uri (48)
クラス
- Pathname (12)
-
RDoc
:: TopLevel (24) -
Resolv
:: DNS :: Name (12) -
RubyVM
:: InstructionSequence (36) -
Thread
:: Backtrace :: Location (24) -
URI
:: Generic (48)
キーワード
- - (12)
- absolute? (36)
-
absolute
_ path (24) -
file
_ absolute _ name (12) -
file
_ absolute _ name= (12) - path (24)
-
route
_ from (12) -
to
_ a (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # path -> String (7.0) -
self が表す命令シーケンスの相対パスを返します。
..."<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 # to _ a -> Array (7.0) -
self の情報を 14 要素の配列にして返します。
...た場合は
"<compiled>"。
: #path
命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1... -
Thread
:: Backtrace :: Location # path -> String (7.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... -
URI
:: Generic # -(src) -> URI :: Generic (7.0) -
与えられた URI を表す src からの相対パスを返します。
...られた URI を表す src からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x201... -
URI
:: Generic # route _ from(src) -> URI :: Generic (7.0) -
与えられた URI を表す src からの相対パスを返します。
...られた URI を表す src からの相対パスを返します。
@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。
例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x201...