59件ヒット
[1-59件を表示]
(0.027秒)
種類
- 関数 (22)
- インスタンスメソッド (11)
- クラス (11)
- ライブラリ (11)
- 文書 (4)
ライブラリ
-
irb
/ context (22)
クラス
-
IRB
:: Context (11)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) - irb (11)
-
rb
_ thread _ restore _ context (11) -
rb
_ thread _ save _ context (11) - thread (11)
検索結果
先頭5件
-
IRB
:: Context (18030.0) -
irb の設定を扱うためのクラスです。
...更の内容は反
映されない事に注意してください。
なお、.irbrc 中に記述できる以下の設定値については、IRB::Context
オブジェクトのメソッドとして操作できません。
: IRB.conf[:AT_EXIT]
irb の終了時(サブ irb を含みません)に本......c オ
ブジェクトを実行します。ブロック引数には何も渡されません。
デフォルト値は [] です。
: IRB.conf[:CONTEXT_MODE]
新しいワークスペースを作成した時(サブ irb の起動や pushws した時)に、
ワークスペースに関連する......の Proc 内の
Binding を使用します。1 を指定した場合、Tempfile 中の
Binding を使用します。2 を指定した場合、Thread 内で読み込
んだファイル中の Binding を使用します。3 を指定した場合、
Object::TOPLEVEL_BINDING の関数中の Bind... -
static void rb
_ thread _ restore _ context(rb _ thread _ t th , int exit) (12300.0) -
スレッドを切り替えるにあたって、切り替え先のスレッド th の コンテキストを評価器に復帰します。
スレッドを切り替えるにあたって、切り替え先のスレッド th の
コンテキストを評価器に復帰します。 -
static void rb
_ thread _ save _ context(rb _ thread _ t th) (12300.0) -
スレッドを切り替えるにあたって、現在実行中のスレッド th の コンテキストを評価器から th に退避します。
スレッドを切り替えるにあたって、現在実行中のスレッド th の
コンテキストを評価器から th に退避します。 -
IRB
:: Context # thread -> Thread (9208.0) -
現在のスレッドを返します。
...現在のスレッドを返します。
@see Thread.current... -
irb (114.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...行なう。デフォルト値は 16。
--context-mode n 新しいワークスペースを作成した時に関連する Binding
オブジェクトの作成方法を 0 から 3 で設定する。
(IRB::Context 参照)
--single-irb irb 中で self を......IRB.conf[:USE_READLINE] = nil
IRB.conf[:USE_TRACER] = true
IRB.conf[:VERBOSE] = true
それぞれの設定値の詳細については、IRB::Context を参照してください。
====[a:customize_prompt] プロンプトのカスタマイズ
irb のプロンプトをカスタマイズした......# サブirbの立ちあげ
irb#1(main):001:0> jobs # サブirbのリスト
#0->irb on main (#<Thread:0x400fb7e4> : stop)
#1->irb#1 on main (#<Thread:0x40125d64> : running)
nil
irb#1(main):002:0> fg 0 # jobのスイッチ
nil
irb(main):002:0>... -
NEWS for Ruby 3
. 0 . 0 (66.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...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......or Encoding.default_external to UTF-8 on Windows 16604
* Fiber
* Fiber.new(blocking: true/false) allows you to create non-blocking execution contexts. 16786
* Fiber#blocking? tells whether the fiber is non-blocking. 16786
* Fiber#backtrace and Fiber#backtrace_locations provide per-fibe......M1.include M2
p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject]
//}
* Mutex
* `Mutex` is now acquired per-`Fiber` instead of per-`Thread`. This change should be compatible for essentially all usages and avoids blocking when using a scheduler. 16792
* Proc
* Proc#== and Proc#eq...