るりまサーチ

最速Rubyリファレンスマニュアル検索!
24876件ヒット [1-100件を表示] (0.087秒)
トップページ > クエリ:ruby[x] > クエリ:_builtin[x]

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

_builtin (38016.0)

組み込みライブラリは Ruby 本体に組み込まれているライブラリです。 このライブラリに含まれるクラスやモジュールは、 require を書かなくても使うことができます。

...組み込みライブラリは Ruby 本体に組み込まれているライブラリです。
このライブラリに含まれるクラスやモジュールは、
require を書かなくても使うことができます。...

Hash.ruby2_keywords_hash?(hash) -> bool (14191.0)

Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。

...Module#ruby2_keywordsやProc#ruby2_keywordsによる
ruby
2_keywords フラグが設定されているかどうかを返します。

このメソッドはデバッグや調査、シリアライゼーションのために本当に必要な場合のために
用意されていて、普通のプログ...
...れていません。

ruby
2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。

//emlist[][ruby]{
ruby
2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(k: 1) # => true
foo({k: 1}) # => false
//}

@see Module#ruby2_keywords, Proc#ruby2_keywords...

Object::RUBY_ENGINE -> String (14153.0)

Ruby処理系実装の種類を表す文字列。

...Ruby処理系実装の種類を表す文字列。

例:
$ ruby-1.9.1 -ve 'p RUBY_ENGINE'
ruby
1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux]
"ruby"
$ jruby -ve 'p RUBY_ENGINE'
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
"jruby"...

Object::RUBY_PATCHLEVEL -> Integer (14135.0)

Ruby のパッチレベルを表す Integer オブジェクトです。

...Ruby のパッチレベルを表す Integer オブジェクトです。

パッチレベルはRubyの各バージョンに対するバグ修正パッチの適用をカウントしています。
teeny リリースのそれぞれについてパッチレベルは 0 から始まり、
その teeny リ...
...ースに対してバグ修正パッチが適用される度に増えていきます。

パッチレベルという概念および RUBY_PATCHLEVEL 定数は、 Ruby 1.8.5-p1 以降、 1.8.6 以降で導入されました。
1.8.5やそれ以前のバージョンでは定義されていません。...

Module#ruby2_keywords(method_name, ...) -> nil (14131.0)

For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.

...ate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.

This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the module responds to this method befo...
...aware that if this method is removed, the behavior of the
method will change so that it does not pass through keywords.

//emlist[例][ruby]{
module Mod
def foo(meth, *args, &block)
send(:"do_#{meth}", *args, &block)
end
ruby
2_keywords(:foo) if respond_to?(:ruby2_keywords, true)
end
//}...

絞り込み条件を変える

Proc#ruby2_keywords -> proc (14131.0)

Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.

...ate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.

This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the proc responds to this method before...
...so, be aware that if this method is removed, the behavior of the
proc will change so that it does not pass through keywords.

//emlist[][ruby]{
module Mod
foo = ->(meth, *args, &block) do
send(:"do_#{meth}", *args, &block)
end
foo.ruby2_keywords if foo.respond_to?(:ruby2_keywords)
end
//}...

Object::RUBY_DESCRIPTION -> String (14123.0)

Ruby の詳細を表す文字列。

...Ruby の詳細を表す文字列。

ruby
-v で表示される内容が格納されています。...

Object::RUBY_VERSION -> String (14123.0)

Ruby のバージョンを表す文字列。

...
Ruby
のバージョンを表す文字列。

Ruby
のバージョンは、major.minor.teeny という形式です。...

Object::RUBY_COPYRIGHT -> String (14117.0)

Ruby のコピーライトを表す文字列。

...Ruby のコピーライトを表す文字列。...

Object::RUBY_ENGINE_VERSION -> String (14117.0)

Ruby処理系実装のバージョンを表す文字列。

...Ruby処理系実装のバージョンを表す文字列。...

絞り込み条件を変える

<< 1 2 3 ... > >>