るりまサーチ

最速Rubyリファレンスマニュアル検索!
40173件ヒット [101-200件を表示] (0.132秒)
トップページ > クエリ:>[x] > クエリ:Ruby[x]

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. float >
  5. complex >

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Object::RUBY_PATCHLEVEL -> Integer (6235.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 (6231.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 (6231.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
//}...

Fiddle::BUILD_RUBY_PLATFORM -> String (6223.0)

ビルドに用いた ruby のプラットフォームを表す文字列。

...ビルドに用いた ruby のプラットフォームを表す文字列。

通常、Object::RUBY_PLATFORM と同じ。...

Object::RUBY_DESCRIPTION -> String (6223.0)

Ruby の詳細を表す文字列。

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

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

絞り込み条件を変える

Object::RUBY_VERSION -> String (6223.0)

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

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

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

Kernel$$> -> object (6218.0)

標準出力です。

...ロセスの標準出力をリダイレクトしたいときには、
以下のように $stdout に代入すれば十分です。

//emlist[例][ruby]{
# 標準出力の出力先を /tmp/foo に変更
$stdout = File.open("/tmp/foo", "w")
puts "foo" # 出力する
$stdout = STDOUT # 元に...
...下のように IO#reopen を使います。

//emlist[例][ruby]{
STDOUT.reopen("/tmp/foo", "w")
//}

また、リダイレクトしたあと
出力先をまた元に戻したい場合は以下のようにします。

//emlist[例][ruby]{
stdout_old = $stdout.dup # 元の $stdout を保存...
...") # $stdout を /tmp/foo にリダイレクトする
puts "foo" # /tmp/foo に出力
$stdout.flush # 念のためフラッシュする
$stdout.reopen stdout_old # 元に戻す
//}

$stdout はグローバルスコープです。

@see spec/rubycmd...

Fiddle::RUBY_FREE -> Integer (6217.0)

ruby_xfree の関数ポインタのアドレスの値。

...ruby_xfree の関数ポインタのアドレスの値。...

Gem.#ruby -> String (6217.0)

実行中のRubyインタプリタのパスを返します。

...実行中のRubyインタプリタのパスを返します。...
<< < 1 2 3 4 ... > >>