別のキーワード
ライブラリ
- ビルトイン (18)
-
cgi
/ core (2) -
cgi
/ html (4) -
drb
/ extservm (2) -
irb
/ context (41) -
irb
/ ext / history (2) -
irb
/ ext / math-mode (3) -
irb
/ ext / save-history (5) -
irb
/ ext / tracer (3) -
irb
/ ext / use-loader (5) -
net
/ imap (10) -
net
/ smtp (4) - openssl (67)
- pathname (1)
- rake (1)
-
rdoc
/ context (3) -
rdoc
/ text (2) - rexml (1)
-
rexml
/ document (10) -
rexml
/ parsers / pullparser (1) - thwait (1)
- win32ole (1)
クラス
-
ARGF
. class (5) - CGI (2)
-
DRb
:: ExtServManager (2) - Enumerator (2)
- Float (1)
-
IRB
:: Context (57) - Integer (2)
- Module (2)
-
Net
:: IMAP :: BodyTypeText (8) -
Net
:: IMAP :: ResponseText (1) -
Net
:: IMAP :: TaggedResponse (1) -
Net
:: SMTP (4) - Object (1)
-
OpenSSL
:: SSL :: SSLContext (46) -
OpenSSL
:: SSL :: SSLSocket (1) -
OpenSSL
:: X509 :: CRL (1) -
OpenSSL
:: X509 :: Extension (6) -
OpenSSL
:: X509 :: ExtensionFactory (7) -
OpenSSL
:: X509 :: StoreContext (6) - Pathname (1)
-
RDoc
:: Context (3) -
REXML
:: Child (1) -
REXML
:: Element (4) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullParser (1) -
REXML
:: Text (5) -
Rake
:: FileList (1) -
RubyVM
:: InstructionSequence (1) - String (2)
- Symbol (2)
- ThreadsWait (1)
-
WIN32OLE
_ METHOD (1)
モジュール
-
CGI
:: HtmlExtension (4) -
IRB
:: ExtendCommandBundle (2) -
RDoc
:: Text (2)
キーワード
-
add
_ module (1) -
add
_ to (1) -
ap
_ name (1) -
ap
_ name= (1) -
auto
_ indent _ mode (1) -
auto
_ indent _ mode= (1) -
back
_ trace _ limit (1) -
back
_ trace _ limit= (1) -
ca
_ file (1) -
ca
_ file= (1) -
ca
_ path (1) -
ca
_ path= (1) - cert (1)
- cert= (1)
-
cert
_ store (1) -
cert
_ store= (1) -
client
_ ca (1) -
client
_ ca= (1) -
client
_ cert _ cb (1) -
client
_ cert _ cb= (1) - code (1)
-
content
_ id (1) - context (3)
- context= (1)
-
create
_ ext _ from _ array (1) -
create
_ ext _ from _ hash (1) -
create
_ ext _ from _ string (1) - critical= (1)
- critical? (1)
- crl= (1)
- data (1)
- debug? (1)
-
debug
_ level (1) -
debug
_ level= (1) - description (1)
- disposition (1)
- doctype (1)
-
each
_ classmodule (1) - echo (1)
- echo= (1)
- echo? (1)
-
enable
_ ssl (1) -
enable
_ starttls (1) -
enable
_ starttls _ auto (1) -
enable
_ tls (1) - encoding (1)
- error (1)
- error= (1)
-
eval
_ history (1) -
eval
_ history= (1) - exit (1)
- extend (1)
-
extend
_ object (1) - extended (1)
-
external
_ encoding (1) - extname (1)
-
extra
_ chain _ cert (1) -
extra
_ chain _ cert= (1) - flags= (1)
-
flush
_ sessions (1) - form (4)
-
get
_ text (1) -
has
_ next? (1) - header (1)
- helpcontext (1)
-
history
_ file (1) -
history
_ file= (1) -
ignore
_ eof (1) -
ignore
_ eof= (1) -
ignore
_ eof? (1) -
ignore
_ sigint (1) -
ignore
_ sigint= (1) -
ignore
_ sigint? (1) -
init
_ save _ history (1) -
inplace
_ mode= (1) - inspect? (1)
-
inspect
_ mode (1) -
inspect
_ mode= (1) -
irb
_ load (1) -
irb
_ name (1) -
irb
_ name= (1) -
irb
_ require (1) -
issuer
_ certificate= (1) - key (1)
- key= (1)
- main (1)
- math? (1)
-
math
_ mode (1) -
math
_ mode= (1) -
media
_ subtype (1) -
media
_ type (1) - next (3)
- next! (1)
-
next
_ float (1) -
next
_ sibling (1) -
next
_ update= (1) -
next
_ values (1) -
next
_ wait (1) -
normalize
_ comment (1) - oid (1)
- oid= (1)
- out (1)
- param (1)
- parse (1)
-
prompt
_ c (1) -
prompt
_ c= (1) -
prompt
_ i (1) -
prompt
_ i= (1) -
prompt
_ mode (1) -
prompt
_ mode= (1) -
prompt
_ n (1) -
prompt
_ n= (1) -
prompt
_ s (1) -
prompt
_ s= (1) - purpose= (1)
- raw (1)
- raw= (1)
-
renegotiation
_ cb (1) -
renegotiation
_ cb= (1) -
return
_ format (1) -
return
_ format= (1) -
save
_ history (1) -
save
_ history= (1) -
servername
_ cb= (1) -
session
_ cache _ mode (1) -
session
_ cache _ mode= (1) -
session
_ cache _ size (1) -
session
_ cache _ size= (1) -
session
_ get _ cb (1) -
session
_ get _ cb= (1) -
session
_ id _ context (1) -
session
_ id _ context= (1) -
session
_ new _ cb (1) -
session
_ new _ cb= (1) -
session
_ remove _ cb (1) -
session
_ remove _ cb= (1) -
set
_ encoding (3) -
ssl
_ timeout (1) -
ssl
_ timeout= (1) -
subject
_ certificate= (1) -
subject
_ request= (1) - subtype (1)
- succ (2)
- succ! (1)
- text (1)
- thread (1)
- time= (1)
- timeout (1)
- timeout= (1)
-
tmp
_ dh _ callback (1) -
tmp
_ dh _ callback= (1) -
to
_ binary (1) -
to
_ s (1) - trust= (1)
- uri (1)
- uri= (1)
-
use
_ loader (1) -
use
_ loader= (1) -
use
_ loader? (1) -
use
_ tracer (1) -
use
_ tracer= (1) -
use
_ tracer? (1) - value (2)
- value= (1)
- verbose (1)
- verbose= (1)
- verbose? (1)
-
verify
_ callback (1) -
verify
_ callback= (1) -
verify
_ depth (1) -
verify
_ depth= (1) -
verify
_ mode (1) -
verify
_ mode= (1)
検索結果
先頭5件
- Rake
:: FileList # ext(newext = & # 39;& # 39;) -> Rake :: FileList - OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ array(ary) -> OpenSSL :: X509 :: Extension - OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ hash(hash) -> OpenSSL :: X509 :: Extension - OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ string(str) -> OpenSSL :: X509 :: Extension - OpenSSL
:: SSL :: SSLContext # session _ id _ context=(id _ context)
-
Rake
:: FileList # ext(newext = & # 39;& # 39;) -> Rake :: FileList (54709.0) -
各要素に String#ext を適用した新しい Rake::FileList を返します。
各要素に String#ext を適用した新しい Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.ext(".erb") # => ["test1.e... -
OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ array(ary) -> OpenSSL :: X509 :: Extension (27643.0) -
[oid, value, critical] もしくは [oid, value] という配列から OpenSSL::X509::Extension オブジェクトを生成します。
[oid, value, critical] もしくは [oid, value] という配列から
OpenSSL::X509::Extension オブジェクトを生成します。
@param ary 生成する拡張領域のデータの配列
@see OpenSSL::X509::ExtensionFactory#create_ext -
OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ hash(hash) -> OpenSSL :: X509 :: Extension (27643.0) -
ハッシュから OpenSSL::X509::Extension オブジェクトを生成します。
ハッシュから OpenSSL::X509::Extension オブジェクトを生成します。
渡すハッシュテーブルは
{"oid" => OID文字列, "value" => value文字列, "critical" => 真偽値 }
という内容が必要です。"critical" を省略した場合は false が
渡されるのと同じになります。
@param hash 生成する拡張領域のデータのハッシュテーブル
@see OpenSSL::X509::ExtensionFactory#create_ext -
OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ string(str) -> OpenSSL :: X509 :: Extension (27643.0) -
文字列から OpenSSL::X509::Extension オブジェクトを生成します。
文字列から OpenSSL::X509::Extension オブジェクトを生成します。
文字列は "oid = value" もしくは "oid = critical, value" という
形式である必要があります。
@param str 生成する拡張領域のデータの文字列
@see OpenSSL::X509::ExtensionFactory#create_ext -
OpenSSL
:: SSL :: SSLContext # session _ id _ context=(id _ context) (27622.0) -
セッション ID コンテキストを文字列で設定します。
セッション ID コンテキストを文字列で設定します。
セッション ID コンテキストは、セッションをグループ化するための
識別子で、セッション ID コンテキストとセッション ID の両方が
一致する場合に同一のセッションであると判別されます。
この OpenSSL::SSL::SSLContext オブジェクトで
生成されたコネクション(OpenSSL::SSL::SSLSocket)に
関連付けられたセッションはセッション ID コンテキスト
を共有します。
セッション ID コンテキストはセッションのグループを
識別するための識別子であり、一方セッション ID は各セッションを
識別... -
OpenSSL
:: SSL :: SSLContext # extra _ chain _ cert -> [OpenSSL :: X509 :: Certificate] | nil (27322.0) -
自分自身を証明する証明書からルート CA までの証明書のリストです。
自分自身を証明する証明書からルート CA までの証明書のリストです。
@see OpenSSL::SSL::SSLContext#extra_chain_cert= -
OpenSSL
:: SSL :: SSLContext # extra _ chain _ cert=(certificates) (27322.0) -
自分自身を証明する証明書からルート CA までの証明書のリストを配列で設定します。
自分自身を証明する証明書からルート CA までの証明書のリストを配列で設定します。
OpenSSL::SSL::SSLContext#cert で設定した証明書から相手が持っていると
期待されるルート CA 証明書までのリストを渡します。
これによって接続相手はチェインを辿ることでその相手が信頼していない証明書の
信頼性を順に確認し、自分自身を証明する証明書の信頼性を確認します。
@param certificates 設定する証明書チェイン(OpenSSL::X509::Certificate の
配列)
@see OpenSSL::SSL::SSLContext#ext... -
OpenSSL
:: SSL :: SSLContext # session _ id _ context -> String | nil (27322.0) -
セッション ID コンテキスト文字列を返します。
セッション ID コンテキスト文字列を返します。
設定されていない場合は nil を返します。
@see OpenSSL::SSL::Session,
OpenSSL::SSL::SSLContext#session_id_context= -
REXML
:: ParseException # context -> [Integer , Integer , Integer] (27304.0) -
パースエラーが起きた(XML上の)場所を返します。
パースエラーが起きた(XML上の)場所を返します。
要素3個の配列で、
[position, lineno, line]
という形で返します。
position, line は
REXML::ParseException#position
REXML::ParseException#line
と同じ値です。
lineno は IO#lineno が返す意味での行数です。
通常は line と同じ値です。 -
OpenSSL
:: SSL :: SSLSocket # context -> OpenSSL :: SSL :: SSLContext (18622.0) -
SSLSocket オブジェクトを生成する時に渡されたコンテクストを返します。
SSLSocket オブジェクトを生成する時に渡されたコンテクストを返します。
@see OpenSSL::SSL::SSLSocket.new -
REXML
:: Element # get _ text(path = nil) -> REXML :: Text | nil (18622.0) -
先頭のテキスト子ノードを返します。
先頭のテキスト子ノードを返します。
raw モードの設定は無視され、常に正規化されたテキストを返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。
テキストノードがない場合には nil を返します。
@param path XPath文字列
@see REXML::Element#text
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this ... -
ARGF
. class # external _ encoding -> Encoding (18322.0) -
ARGF が処理するファイルに対する外部エンコーディングを返します。 デフォルトは Encoding.default_external です。
ARGF が処理するファイルに対する外部エンコーディングを返します。
デフォルトは Encoding.default_external です。
ARGF.class#set_encoding で設定します。
例:
ARGF.external_encoding # => #<Encoding:UTF-8>
@see IO, ARGF.class#internal_encoding -
Enumerator
# next -> object (18322.0) -
「次」のオブジェクトを返します。
「次」のオブジェクトを返します。
現在までの列挙状態に応じて「次」のオブジェクトを返し、列挙状態を1つ分進めます。
列挙が既に最後へ到達している場合は、
StopIteration 例外を発生します。このとき列挙状態は変化しません。
つまりもう一度 next を呼ぶと再び例外が発生します。
next メソッドによる外部列挙の状態は他のイテレータメソッドによる
内部列挙には影響を与えません。
ただし、 IO#each_line のようにおおもとの列挙メカニズムが副作用を
伴っている場合には影響があり得ます。
@raise StopIteration 列挙状態が既に最後へ到達しているとき
@... -
Enumerator
# next _ values -> Array (18322.0) -
「次」のオブジェクトを配列で返します。
「次」のオブジェクトを配列で返します。
Enumerator#next とほぼ同様の挙動をします。終端まで到達した場合は
StopIteration 例外を発生させます。
このメソッドは、
yield
と
yield nil
を区別するために使えます。
next メソッドによる外部列挙の状態は他のイテレータメソッドによる
内部列挙には影響を与えません。
ただし、 IO#each_line のようにおおもとの列挙メカニズムが副作用を
伴っている場合には影響があり得ます。
//emlist[例: next と next_values の違いを][ruby]{
o = Object... -
Float
# next _ float -> Float (18322.0) -
浮動小数点数で表現可能な self の次の値を返します。
浮動小数点数で表現可能な self の次の値を返します。
Float::MAX.next_float、Float::INFINITY.next_float は
Float::INFINITY を返します。Float::NAN.next_float は
Float::NAN を返します。
//emlist[例][ruby]{
p 0.01.next_float # => 0.010000000000000002
p 1.0.next_float # => 1.0000000000000002
p 100.0.next_float # => 100.00000000000001
p ... -
Integer
# next -> Integer (18322.0) -
self の次の整数を返します。
self の次の整数を返します。
//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}
@see Integer#pred -
Module
# extend _ object(obj) -> object (18322.0) -
Object#extend の実体です。オブジェクトにモジュールの機能を追加します。
Object#extend の実体です。オブジェクトにモジュールの機能を追加します。
Object#extend は、Ruby で書くと以下のように定義できます。
//emlist[例][ruby]{
def extend(*modules)
modules.reverse_each do |mod|
# extend_object や extended はプライベートメソッドなので
# 直接 mod.extend_object(self) などとは書けない
mod.__send__(:extend_object, self)
mod.__send__... -
Module
# extended(obj) -> () (18322.0) -
self が他のオブジェクト に Object#extend されたときに 呼ばれます。引数には extend を行ったオブジェクトが渡されます。
self が他のオブジェクト に Object#extend されたときに
呼ばれます。引数には extend を行ったオブジェクトが渡されます。
@param obj Object#extend を行ったオブジェクト
//emlist[例][ruby]{
module Foo
def self.extended(obj)
p "#{obj} extend #{self}"
end
end
Object.new.extend Foo
# => "#<Object:0x401cbc3c> extend Foo"
//}
@see Module#extend_objec... -
Object
# extend(*modules) -> self (18322.0) -
引数で指定したモジュールのインスタンスメソッドを self の特異 メソッドとして追加します。
引数で指定したモジュールのインスタンスメソッドを self の特異
メソッドとして追加します。
Module#include は、クラス(のインスタンス)に機能を追加します
が、extend は、ある特定のオブジェクトだけにモジュールの機能を追加
したいときに使用します。
引数に複数のモジュールを指定した場合、最後
の引数から逆順に extend を行います。
@param modules モジュールを任意個指定します(クラスは不可)。
@return self を返します。
//emlist[][ruby]{
module Foo
def a
'ok Foo'
en... -
OpenSSL
:: X509 :: CRL # next _ update=(time) (18322.0) -
CRL の次回更新日時を Time オブジェクトで設定します。
CRL の次回更新日時を Time オブジェクトで設定します。
@param time 最終更新日時
@raise OpenSSL::X509::CRLError 設定に失敗した場合に発生します
@see OpenSSL::X509::CRL#next_update -
Pathname
# extname -> String (18322.0) -
File.extname(self.to_s) と同じです。
File.extname(self.to_s) と同じです。
@see File.extname -
REXML
:: Child # next _ sibling -> REXML :: Node (18322.0) -
次の隣接ノードを返します。
次の隣接ノードを返します。
REXML::Node#next_sibling_node の別名です。
@see REXML::Child#next_sibling= -
REXML
:: Element # context -> {Symbol => object} | nil (18322.0) -
要素の「コンテキスト」を Hash で返します。
要素の「コンテキスト」を Hash で返します。
コンテキストとは text node (REXML::Text) での特別な文字、特に空白について
の取り扱いについての設定です。
以下の Symbol をハッシュのキーとして使います。
: :respect_whitespace
空白を考慮して欲しい要素の名前の集合を文字列の配列で指定します。
また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitespac... -
REXML
:: Element # context=(value) (18322.0) -
要素の「コンテキスト」を Hash で設定します。
要素の「コンテキスト」を Hash で設定します。
コンテキストとは、 text node (REXML::Text) での特別な文字、特に空白について
の取り扱いについての設定です。
以下の Symbol をハッシュのキーとして使います。
: :respect_whitespace
空白を考慮して欲しい要素の名前の集合を文字列の配列で指定します。
また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitesp... -
REXML
:: Element # text(path = nil) -> String | nil (18322.0) -
先頭のテキスト子ノードの文字列を返します。
先頭のテキスト子ノードの文字列を返します。
テキストノードを複数保持している場合は最初のノードにしか
アクセスできないことに注意してください。
raw モードの設定は無視され、常に正規化されたテキストを返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。
テキストノードがない場合には nil を返します。
@param path XPath文字列
@see REXML::Element#get_text
//emlist[][ruby]{
require 'rexml... -
REXML
:: Parsers :: PullParser # has _ next? -> bool (18322.0) -
未処理のイベントが残っている場合に真を返します。
未処理のイベントが残っている場合に真を返します。
@see REXML::Parsers::PullParser#empty? -
String
# next! -> String (18322.0) -
self を「次の」文字列に置き換えます。 「次の」文字列は、アルファベットなら 16 進数、 数字なら 10 進数とみなして計算されます。 「次の」文字列の計算では "99" → "100" のように繰り上げも行われます。 このとき負符号などは考慮されません。
self を「次の」文字列に置き換えます。
「次の」文字列は、アルファベットなら 16 進数、
数字なら 10 進数とみなして計算されます。
「次の」文字列の計算では "99" → "100" のように繰り上げも行われます。
このとき負符号などは考慮されません。
self にアルファベットや数字とそれ以外の文字が混在している場合、
アルファベットと数字だけが「次の」文字になり、残りは保存されます。
逆に self がアルファベットや数字をまったく含まない場合は、
単純に文字コードを 1 増やします。
さらに、self が空文字列の場合は "" を返します。
このメソッドはマルチバイト文... -
Symbol
# next -> Symbol (18322.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ -
ThreadsWait
# next _ wait(nonblock = nil) -> Thread (18322.0) -
指定したスレッドのどれかが終了するまで待ちます。
指定したスレッドのどれかが終了するまで待ちます。
@param nonblock true を与えると、キューが空の時、例外 ThreadsWait::ErrNoFinishedThread が発生します。
@raise ErrNoWaitingThread 終了をまつスレッドが存在しない時、発生します。
@raise ErrNoFinishedThread nonblock がtrue でかつ、キューが空の時、発生します。
#使用例
require 'thwait'
threads = []
2.times {|i|
threads << Thread.n... -
WIN32OLE
_ METHOD # helpcontext -> Integer | nil (18322.0) -
メソッドのヘルプコンテキストを取得します。
メソッドのヘルプコンテキストを取得します。
ヘルプコンテキストは、関連するヘルプファイル上のトピック位置を示す整数
値です。
@return ヘルプコンテキストを返します。未定義の場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbooks')
method = WIN32OLE_METHOD.new(tobj, 'Add')
puts method.helpcontext # => 65717
WIN32OLE_METHODオブジェクトを引数として、WI... -
RDoc
:: Text # normalize _ comment(text) -> String (9340.0) -
引数から行頭のスペースや改行文字などを削除します。
引数から行頭のスペースや改行文字などを削除します。
詳しくは [SEE ALSO] の各メソッドを参照してください。
@param text 文字列を指定します。
@see RDoc::Text#strip_hashes, RDoc::Text#expand_tabs,
RDoc::Text#flush_left, RDoc::Text#strip_newlines -
RDoc
:: Text # parse(text) -> RDoc :: Markup :: Document | Array (9322.0) -
引数から RDoc::Text#normalize_comment でスペースや改行文字などを削 除した後に解析を行います。
引数から RDoc::Text#normalize_comment でスペースや改行文字などを削
除した後に解析を行います。
@param text 文字列を指定します。
@see RDoc::Text#normalize_comment -
CGI
:: HtmlExtension # form(attributes) -> String (9022.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
CGI
:: HtmlExtension # form(attributes) { . . . } -> String (9022.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
DRb
:: ExtServManager # uri -> String|nil (9022.0) -
サービス起動時にプロセスを spawn する時に渡す URI を返します。
サービス起動時にプロセスを spawn する時に渡す URI を返します。
デフォルトは nil で、これは DRb.#uri を用いることを意味します。
@see DRb::ExtServManager#uri= -
DRb
:: ExtServManager # uri=(uri) (9022.0) -
サービス起動時にプロセスを spawn する時に渡す URI を設定します。
サービス起動時にプロセスを spawn する時に渡す URI を設定します。
@see DRb::ExtServManager#uri -
IRB
:: Context # ap _ name -> String (9022.0) -
自身のアプリケーション名を返します。
自身のアプリケーション名を返します。
デフォルト値は "irb" です。
@see IRB::Context#ap_name= -
IRB
:: Context # ap _ name=(val) (9022.0) -
自身のアプリケーション名を val に設定します。
自身のアプリケーション名を val に設定します。
.irbrc ファイル中で IRB.conf[:AP_NAME] を設定する事でも同様の操作が行え
ます。
@param val アプリケーション名を String で指定します。
@see IRB::Context#ap_name -
IRB
:: Context # auto _ indent _ mode -> bool (9022.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode= -
IRB
:: Context # auto _ indent _ mode=(val) (9022.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#auto_indent_mode -
IRB
:: Context # back _ trace _ limit -> Integer (9022.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
デフォルト値は 16 です。
@see IRB::Context#back_trace_limit= -
IRB
:: Context # back _ trace _ limit=(val) (9022.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数をそれぞれ val 行に設定します。
エラー発生時のバックトレース表示の先頭、末尾の上限の行数をそれぞれ val
行に設定します。
.irbrc ファイル中で IRB.conf[:BACK_TRACE_LIMIT] を設定する事でも同様の
操作が行えます。
@param val バックトレース表示の先頭、末尾の上限を Integer で指定
します。
@see IRB::Context#back_trace_limit -
IRB
:: Context # debug? -> bool (9022.0) -
irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し ているかどうかを返します。
irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し
ているかどうかを返します。
デフォルト値は false です。
@see IRB::Context#debug_level, IRB::Context#debug_level= -
IRB
:: Context # debug _ level -> Integer (9022.0) -
irb のデバッグレベルを返します。
irb のデバッグレベルを返します。
デフォルト値は 0 です。
@see IRB::Context#debug_level=, IRB::Context#debug? -
IRB
:: Context # debug _ level=(val) (9022.0) -
irb のデバッグレベルを val に設定します。
irb のデバッグレベルを val に設定します。
.irbrc ファイル中で IRB.conf[:DEBUG_LEVEL] を設定する事でも同様の操作
が行えます。
@see IRB::Context#debug_level, IRB::Context#debug? -
IRB
:: Context # echo -> bool (9022.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo= -
IRB
:: Context # echo=(val) (9022.0) -
irb のプロンプトでの評価結果を表示するかどうかを設定します。
irb のプロンプトでの評価結果を表示するかどうかを設定します。
.irbrc ファイル中で IRB.conf[:ECHO] を設定する事でも同様の操作が行えま
す。
@param val true を指定した場合、irb のプロンプトでの評価結果を表示しま
す。false を指定した場合は表示しません。
@see IRB::Context#echo -
IRB
:: Context # echo? -> bool (9022.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo= -
IRB
:: Context # eval _ history -> Integer | nil (9022.0) -
実行結果の履歴の最大保存件数を Integer か nil で返します。
実行結果の履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 を返し
た場合は無制限に保存します。nil を返した場合は追加の保存は行いません。
@see IRB::Context#eval_history= -
IRB
:: Context # eval _ history=(val) (9022.0) -
実行結果の履歴の最大保存件数を val に設定します。
実行結果の履歴の最大保存件数を val に設定します。
.irbrc ファイル中で IRB.conf[:EVAL_HISTORY] を設定する事でも同様の事が
行えます。
@param val 実行結果の履歴の最大保存件数を Integer か nil で指定し
ます。0 を指定した場合は無制限に履歴を保存します。現在の値よ
りも小さい値を指定した場合は履歴がその件数に縮小されます。
nil を指定した場合は履歴の追加がこれ以上行われなくなります。
@see IRB::Context#eval_history -
IRB
:: Context # exit(ret = 0) -> object (9022.0) -
irb を終了します。ret で指定したオブジェクトを返します。
irb を終了します。ret で指定したオブジェクトを返します。
@param ret 戻り値を指定します。
@see IRB.irb_exit -
IRB
:: Context # history _ file -> String | nil (9022.0) -
履歴ファイルのパスを返します。
履歴ファイルのパスを返します。
@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。
@see lib:irb#history -
IRB
:: Context # history _ file=(hist) (9022.0) -
履歴ファイルのパスを val に設定します。
履歴ファイルのパスを val に設定します。
.irbrc ファイル中で IRB.conf[:HISTORY_FILE] を設定する事でも同様の事が
行えます。
@param hist 履歴ファイルのパスを文字列で指定します。
@see lib:irb#history -
IRB
:: Context # ignore _ eof -> bool (9022.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
true の時は Ctrl-D を無視します。false の時は irb を終了します。
デフォルト値は false です。
@see IRB::Context#ignore_eof= -
IRB
:: Context # ignore _ eof=(val) (9022.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを val に設定します。
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを val に設定します。
.irbrc ファイル中で IRB.conf[:IGNORE_EOF] を設定する事でも同様の操作が
行えます。
@param val true を指定した場合、 Ctrl-D を無視します。false を指定した
場合は Ctrl-D の入力時に irb を終了します。
@see IRB::Context#ignore_eof -
IRB
:: Context # ignore _ eof? -> bool (9022.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
true の時は Ctrl-D を無視します。false の時は irb を終了します。
デフォルト値は false です。
@see IRB::Context#ignore_eof= -
IRB
:: Context # ignore _ sigint -> bool (9022.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
Ctrl-C が入力された時に irb を終了するかどうかを返します。
false の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint= -
IRB
:: Context # ignore _ sigint=(val) (9022.0) -
Ctrl-C が入力された時に irb を終了するかどうかを val に設定します。
Ctrl-C が入力された時に irb を終了するかどうかを val に設定します。
.irbrc ファイル中で IRB.conf[:IGNORE_SIGINT] を設定する事でも同様の操作
が行えます。
@param val false を指定した場合、Ctrl-C の入力時に irb を終了します。
true を指定した場合、Ctrl-C の入力時に以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
@see IRB::Context#ignore_sigint -
IRB
:: Context # ignore _ sigint? -> bool (9022.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
Ctrl-C が入力された時に irb を終了するかどうかを返します。
false の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint= -
IRB
:: Context # init _ save _ history -> () (9022.0) -
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える ようにします。
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える
ようにします。
@see IRB::HistorySavingAbility.extended -
IRB
:: Context # inspect? -> bool (9022.0) -
IRB::Context#inspect_mode が有効かどうかを返します。
IRB::Context#inspect_mode が有効かどうかを返します。
@return 出力結果に to_s したものを表示する場合は false を返します。それ
以外の場合は true を返します。
@see IRB::Context#inspect_mode, IRB::Context#inspect_mode= -
IRB
:: Context # inspect _ mode -> object | nil (9022.0) -
実行結果の出力方式を返します。
実行結果の出力方式を返します。
@see IRB::Context#inspect_mode= -
IRB
:: Context # inspect _ mode=(opt) (9022.0) -
実行結果の出力方式を opt に設定します。
実行結果の出力方式を opt に設定します。
@param opt 以下のいずれかを指定します。
: false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp, :pretty_inspect
出力結果を pretty_inspect したものを表示します。
: :yaml, :YAML
出力結果を YAML 形式にしたものを表示します。
: :marshal, :Marshal, :MARSHAL, Marshal
出力結果を Marsh... -
IRB
:: Context # irb _ name -> String (9022.0) -
起動しているコマンド名を文字列で返します。
起動しているコマンド名を文字列で返します。
@see IRB::Context#irb_name= -
IRB
:: Context # irb _ name=(val) (9022.0) -
起動しているコマンド名を val に設定します。
起動しているコマンド名を val に設定します。
@param val コマンド名を String で指定します。
@see IRB::Context#irb_name -
IRB
:: Context # main -> object (9022.0) -
self に設定されたオブジェクトを返します。
self に設定されたオブジェクトを返します。
@see cwws コマンド -
IRB
:: Context # math? -> bool (9022.0) -
math_mode が有効かどうかを返します。
math_mode が有効かどうかを返します。
@see IRB::Context#math_mode=, IRB::Context#inspect? -
IRB
:: Context # math _ mode -> bool (9022.0) -
math_mode が有効かどうかを返します。
math_mode が有効かどうかを返します。
@see IRB::Context#math_mode=, IRB::Context#inspect? -
IRB
:: Context # math _ mode=(opt) (9022.0) -
math_mode を有効にするかどうかを指定します。
math_mode を有効にするかどうかを指定します。
.irbrc ファイル中で IRB.conf[:MATH_MODE] を設定する事でも同様の事が行え
ます。
mathn ライブラリを include するため、math_mode を有効にした後は
無効にする事ができません。
@param opt math_mode を有効にする場合に true を指定します。
@raise IRB::CantReturnToNormalMode 既に math_mode の状態で opt に
false か nil を指定... -
IRB
:: Context # prompt _ c -> String (9022.0) -
式が継続している時のプロンプトを表現するフォーマット文字列を返します。
式が継続している時のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_c=, lib:irb#customize_prompt -
IRB
:: Context # prompt _ c=(val) (9022.0) -
式が継続している時のプロンプトを表現するフォーマット文字列を val に設定 します。
式が継続している時のプロンプトを表現するフォーマット文字列を val に設定
します。
@param val フォーマットを文字列で指定します。指定できる内容については、
lib:irb#customize_prompt を参照してください。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#prompt_mode, IRB::Context#prompt_mode=,
IRB::Context#prompt_c, lib:irb#customize_prompt -
IRB
:: Context # prompt _ i -> String (9022.0) -
通常のプロンプトを表現するフォーマット文字列を返します。
通常のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_i=,lib:irb#customize_prompt -
IRB
:: Context # prompt _ i=(val) (9022.0) -
通常のプロンプトを表現するフォーマット文字列を val に設定します。
通常のプロンプトを表現するフォーマット文字列を val に設定します。
@param val フォーマットを文字列で指定します。指定できる内容については、
lib:irb#customize_prompt を参照してください。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#prompt_mode, IRB::Context#prompt_mode=,
IRB::Context#prompt_i, lib:irb#customize_prompt -
IRB
:: Context # prompt _ mode -> Symbol (9022.0) -
現在のプロンプトモードを Symbol で返します。
現在のプロンプトモードを Symbol で返します。
オリジナルのプロンプトモードを定義していた場合はそのモードを返します。
そうでない場合は、:DEFAULT、:CLASSIC、:SIMPLE、:INF_RUBY、:XMP、:NULL
のいずれかを返します。
定義済みのプロンプトモードの内容については、IRB.conf[:PROMPT][mode] を
参照してください。
@see IRB::Context#prompt_mode=, lib:irb#customize_prompt -
IRB
:: Context # prompt _ mode=(mode) (9022.0) -
プロンプトモードを mode に設定します。
プロンプトモードを mode に設定します。
@param mode プロンプトモードを Symbol で指定します。オリジナルの
プロンプトモードか、:DEFAULT、:CLASSIC、:SIMPLE、:INF_RUBY、
:XMP、:NULL のいずれを指定してください。
@see IRB::Context#prompt_mode, lib:irb#customize_prompt -
IRB
:: Context # prompt _ n -> String (9022.0) -
継続行のプロンプトを表現するフォーマット文字列を返します。
継続行のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_n=, lib:irb#customize_prompt -
IRB
:: Context # prompt _ n=(val) (9022.0) -
継続行のプロンプトを表現するフォーマット文字列を val に設定します。
継続行のプロンプトを表現するフォーマット文字列を val に設定します。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#prompt_mode, IRB::Context#prompt_mode=,
IRB::Context#prompt_n, lib:irb#customize_prompt -
IRB
:: Context # prompt _ s -> String (9022.0) -
文字列中のプロンプトを表現するフォーマット文字列を返します。
文字列中のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_s=, lib:irb#customize_prompt -
IRB
:: Context # prompt _ s=(val) (9022.0) -
文字列中のプロンプトを表現するフォーマット文字列を val に設定します。
文字列中のプロンプトを表現するフォーマット文字列を val に設定します。
@param val フォーマットを文字列で指定します。指定できる内容については、
lib:irb#customize_prompt を参照してください。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#prompt_mode, IRB::Context#prompt_mode=,
IRB::Context#prompt_s, lib:irb#customize_prompt -
IRB
:: Context # return _ format -> String (9022.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
@see IRB::Context#return_format=, print_format -
IRB
:: Context # return _ format=(val) (9022.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
@see IRB::Context#return_format, print_format
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。 -
IRB
:: Context # save _ history -> Integer | nil (9022.0) -
履歴の最大保存件数を Integer か nil で返します。
履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 以下や
nil を返した場合は追加の保存は行いません。
@see lib:irb#history -
IRB
:: Context # save _ history=(val) (9022.0) -
履歴の最大保存件数を val に設定します。
履歴の最大保存件数を val に設定します。
.irbrc ファイル中で IRB.conf[:SAVE_HISTORY] を設定する事でも同様の事が
行えます。
@param val 履歴の最大保存件数を Integer で指定します。0 以下や
nil を返した場合は追加の保存は行いません。現在の件数より小さ
い値を設定した場合は、最新の履歴から指定した件数分のみが保存
されます。
@see lib:irb#history -
IRB
:: Context # thread -> Thread (9022.0) -
現在のスレッドを返します。
現在のスレッドを返します。
@see Thread.current -
IRB
:: Context # use _ loader -> bool (9022.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader= -
IRB
:: Context # use _ loader=(opt) (9022.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを設定します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを設定します。
.irbrc ファイル中で IRB.conf[:USE_LOADER] を設定する事でも同様の事が行
えます。
デフォルト値は false です。
@see IRB::Context#use_loader? -
IRB
:: Context # use _ loader? -> bool (9022.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader= -
IRB
:: Context # use _ tracer -> bool (9022.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer= -
IRB
:: Context # use _ tracer=(val) (9022.0) -
irb への入力を評価する時に tracer が有効にするかどうかを val で 指定します。
irb への入力を評価する時に tracer が有効にするかどうかを val で
指定します。
.irbrc ファイル中で IRB.conf[:USE_TRACER] を設定する事でも同様の事が行
えます。
@param val tracer を有効にする場合に true を指定します。
@see tracer, IRB::Context#use_tracer -
IRB
:: Context # use _ tracer? -> bool (9022.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer= -
IRB
:: Context # verbose -> bool | nil (9022.0) -
標準出力に詳細なメッセージを出力するように設定されているかどうかを返し ます。
標準出力に詳細なメッセージを出力するように設定されているかどうかを返し
ます。
IRB::Context#verbose? とは別のメソッドである事に注意してください。
@return 詳細なメッセージを出力するように設定されている場合は true を返
します。そうでない場合は false か nil を返します。
@see IRB::Context#verbose?, IRB::Context#verbose= -
IRB
:: Context # verbose=(val) (9022.0) -
標準出力に詳細なメッセージを出力するかどうかを val に設定します。
標準出力に詳細なメッセージを出力するかどうかを val に設定します。
.irbrc ファイル中で IRB.conf[:VERBOSE] を設定する事でも同様の操作が行え
ます。
false や nil を指定した場合でも、IRB::Context#verbose? が true を
返す場合は詳細なメッセージを出力する事に注意してください。
@param val true を指定した場合、詳細なメッセージを出力します。false や
nil を指定した場合、詳細なメッセージを出力しません。
@see IRB::Context#verbose, IRB::Con... -
IRB
:: Context # verbose? -> bool | nil (9022.0) -
標準出力に詳細なメッセージを出力するかどうかを返します。
標準出力に詳細なメッセージを出力するかどうかを返します。
@return 詳細なメッセージを出力する場合は true を返します。そうでない場
合は false か nil を返します。
設定を行っていた場合(IRB::Context#verbose が true か false を返す
場合)は設定した通りに動作します。設定を行っていない場合は、ファイルを指
定して irb を実行した場合などに true を返します。
@see IRB::Context#verbose, IRB::Context#verbose= -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (9022.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (9022.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute -
Integer
# succ -> Integer (9022.0) -
self の次の整数を返します。
self の次の整数を返します。
//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}
@see Integer#pred -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (9022.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # description -> String | nil (9022.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # disposition -> Net :: IMAP :: ContentDisposition | nil (9022.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeText # encoding -> String (9022.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045