るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n=
  3. rsa n
  4. pop n_bytes
  5. openssl n=

検索結果

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)に達した後も読み込みが行えるかどうかを返します。

絞り込み条件を変える