るりまサーチ

最速Rubyリファレンスマニュアル検索!
72件ヒット [1-72件を表示] (0.079秒)

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. irb/ext/use-loader irb_require
  4. rubygems/custom_require require
  5. require execute

ライブラリ

キーワード

検索結果

URI::Generic#absolute -> bool (18121.0)

自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

例:
require
'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...

URI::Generic#absolute? -> bool (6121.0)

自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。

例:
require
'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false...

Pathname#absolute? -> bool (6120.0)

self が絶対パス指定であれば真を返します。

...self が絶対パス指定であれば真を返します。

//emlist[例][ruby]{
require
"pathname"

pathname = Pathname("/path/to/example.rb")
pathname.absolute? # => true
pathname = Pathname("../")
pathname.absolute? # => false
//}...

RubyVM::InstructionSequence#to_a -> Array (13.0)

self の情報を 14 要素の配列にして返します。

...た場合は
"<compiled>"。

: #path

命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。

: #absolute_path

命令シーケンスの絶対パス。文字列から作成していた場合は nil。

: #first_lineno

命令シーケンスの 1...
...配列。

: args

引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。

[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]

より詳細な情報につい...
...break など)の一覧。

: bytecode

命令シーケンスを構成する命令とオペランドの配列の配列。


//emlist[例][ruby]{
require
'pp'

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/Si...

URI::Generic#-(src) -> URI::Generic (13.0)

与えられた URI を表す src からの相対パスを返します。

...す src からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require
'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.ht...

絞り込み条件を変える

URI::Generic#route_from(src) -> URI::Generic (13.0)

与えられた URI を表す src からの相対パスを返します。

...す src からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require
'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.ht...