るりまサーチ

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

別のキーワード

  1. rdoc/context new
  2. context new
  3. rexml/document context
  4. webrick/ssl ssl_context
  5. context thread

ライブラリ

クラス

キーワード

検索結果

IRB::Context#to_s -> String (18203.0)

自身を人間に読みやすい文字列にして返します。

自身を人間に読みやすい文字列にして返します。

IRB::Context#__to_s__ -> String (9202.0)

自身を文字列表現にしたオブジェクトを返します。

自身を文字列表現にしたオブジェクトを返します。

IRB::Context#inspect -> String (3103.0)

自身を人間に読みやすい文字列にして返します。

自身を人間に読みやすい文字列にして返します。

NEWS for Ruby 3.0.0 (300.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...", "f", 3]
in [*pre, String => x, String => y, *post]
p pre #=> ["a", 1]
p x #=> "b"
p y #=> "c"
p post #=> [2, "d", "e", "f", 3]
end
//}

* Endless method definition is added. [EXPERIMENTAL]
16746

//emlist{
def square(x) = x * x
//}

* Interpolated String literals are no lo...
...aluated code. 4352 17419
* ConditionVariable
* ConditionVariable#wait may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Dir
* Dir.glob and Dir.[] now sort the results by default, and accept the `sort:` keyword option. 8709
* ENV
* ENV.except h...
...performance, and usability.

//emlist[][ruby]{
# test.rb
def foo(x)
if x > 10
x.to_s
else
nil
end
end

foo(42)
//}

//emlist{
$ typeprof test.rb
# Classes
class Object
def foo : (Integer) -> String?
end
//}

== Miscellaneous changes

* Methods using `ruby2_keywords` will no longer...

irb (90.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...行なう。デフォルト値は 16。
--context-mode n 新しいワークスペースを作成した時に関連する Binding
オブジェクトの作成方法を 0 から 3 で設定する。
(IRB::Context 参照)
--single-irb irb 中で self を...
...ット文字列で使用可能な記法は以下の通りです。

: %N
起動しているコマンド名(IRB::Context#irb_name)
: %m
main オブジェクト (self) を to_s した文字列
: %M
main オブジェクト (self) を inspect した文字列
: %l
文字列中のタイプ...
...れます。

: help(*names)
: irb_help(*names)

RI から Ruby のドキュメントを参照します。

//emlist{
irb(main):001:0> help String#match
...
//}

names を指定しなかった場合は、RI を対話的なモードで起動します。メソッ
ド名などを入力す...

絞り込み条件を変える