種類
- インスタンスメソッド (156)
- 特異メソッド (42)
- モジュール関数 (36)
- 文書 (18)
- 定数 (12)
クラス
- File (30)
- Pathname (12)
-
RDoc
:: TopLevel (24) -
Resolv
:: DNS :: Name (24) -
RubyVM
:: InstructionSequence (36) -
Thread
:: Backtrace :: Location (24) -
URI
:: Generic (48)
キーワード
- - (12)
-
CLOCK
_ MONOTONIC (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) - absolute? (36)
-
absolute
_ path (36) -
absolute
_ path? (6) - chmod (12)
-
chmod
_ R (12) -
clock
_ gettime (12) -
file
_ absolute _ name (12) -
file
_ absolute _ name= (12) - new (12)
- path (36)
-
route
_ from (12) -
to
_ a (12)
検索結果
先頭5件
-
Process
:: CLOCK _ MONOTONIC -> Integer | Symbol (6.0) -
Process.#clock_gettime で使われます。
...Process.#clock_gettime で使われます。
システムによっては :MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC です。
システムによっては定義されていません。... -
RubyVM
:: InstructionSequence # path -> String (6.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 (6.0) -
self の情報を 14 要素の配列にして返します。
...た場合は
"<compiled>"。
: #path
命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1... -
Thread
:: Backtrace :: Location # path -> String (6.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 (6.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 (6.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...