15件ヒット
[1-15件を表示]
(0.168秒)
ライブラリ
- ビルトイン (7)
-
irb
/ context (2) -
irb
/ input-method (5) -
irb
/ output-method (1)
クラス
-
IRB
:: Context (2) -
IRB
:: StdioInputMethod (5) -
IRB
:: StdioOutputMethod (1) -
RubyVM
:: InstructionSequence (5) - Thread (2)
キーワード
-
absolute
_ path (1) -
base
_ label (1) - encoding (1)
- eof? (1)
-
first
_ lineno (1) - gets (1)
- io= (1)
- label (1)
- line (1)
- path (1)
- print (1)
-
readable
_ atfer _ eof? (1) -
report
_ on _ exception (1) -
report
_ on _ exception= (1)
検索結果
先頭5件
-
IRB
:: Context # io -> IRB :: InputMethod (72910.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Thread
# report _ on _ exception -> bool (36694.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
デフォルトはスレッド作成時の Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception # => true
a.run
# => #<Th... -
Thread
# report _ on _ exception=(newstate) (36694.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
デフォルトはスレッド作成時の Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception # => true
a.run
# => #<Th... -
IRB
:: StdioInputMethod # encoding -> Encoding (36604.0) -
自身の文字エンコーディングを返します。
自身の文字エンコーディングを返します。 -
IRB
:: StdioInputMethod # line(line _ no) -> String (36604.0) -
引数 line_no で指定した過去の入力を行単位で返します。
引数 line_no で指定した過去の入力を行単位で返します。
@param line_no 取得する行番号を整数で指定します。 -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (36322.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
self が表す命令シーケンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2 -
IRB
:: Context # io=(val) (36307.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: StdioOutputMethod # print(*objs) -> nil (36304.0) -
引数を標準出力に出力します。
引数を標準出力に出力します。
@param objs 任意のオブジェクトを指定します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (27340.0) -
self が表す命令シーケンスの絶対パスを返します。
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.... -
RubyVM
:: InstructionSequence # base _ label -> String (27340.0) -
self が表す命令シーケンスの基本ラベルを返します。
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "h... -
RubyVM
:: InstructionSequence # label -> String (27340.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: R... -
RubyVM
:: InstructionSequence # path -> String (27340.0) -
self が表す命令シーケンスの相対パスを返します。
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。self を文字列から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compi... -
IRB
:: StdioInputMethod # gets -> String (27304.0) -
標準入力から文字列を 1 行読み込みます。
標準入力から文字列を 1 行読み込みます。 -
IRB
:: StdioInputMethod # eof? -> bool (27004.0) -
入力が EOF(End Of File)に達したかどうかを返します。
入力が EOF(End Of File)に達したかどうかを返します。 -
IRB
:: StdioInputMethod # readable _ atfer _ eof? -> true (27004.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。