ライブラリ
- ビルトイン (4)
-
cgi
/ core (2) -
cgi
/ html (4) -
irb
/ context (43) -
irb
/ ext / history (2) -
irb
/ ext / save-history (4) -
irb
/ ext / tracer (3) -
irb
/ ext / use-loader (3) -
irb
/ extend-command (1) -
net
/ ftp (4) -
net
/ http (3) -
net
/ imap (12) -
net
/ smtp (4) - open-uri (1)
- openssl (80)
- pp (2)
- prettyprint (2)
-
rdoc
/ context (30) -
rdoc
/ markup (1) -
rdoc
/ text (3) - rexml (1)
-
rexml
/ document (25) -
rexml
/ parsers / pullparser (1) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (3) - rss (22)
-
rubygems
/ installer (1) - uri (2)
-
webrick
/ httpresponse (1) -
webrick
/ httputils (1) -
webrick
/ ssl (1) - win32ole (2)
クラス
- CGI (2)
-
Gem
:: Installer (1) -
IRB
:: Context (55) -
Net
:: FTP (4) -
Net
:: IMAP :: BodyTypeMessage (1) -
Net
:: IMAP :: BodyTypeMultipart (1) -
Net
:: IMAP :: BodyTypeText (9) -
Net
:: IMAP :: ResponseText (1) -
Net
:: SMTP (4) - Object (1)
-
ObjectSpace
:: WeakMap (1) -
OpenSSL
:: Netscape :: SPKI (1) -
OpenSSL
:: PKCS7 (2) -
OpenSSL
:: PKey :: DH (1) -
OpenSSL
:: PKey :: DSA (1) -
OpenSSL
:: PKey :: EC (1) -
OpenSSL
:: PKey :: EC :: Group (1) -
OpenSSL
:: PKey :: RSA (1) -
OpenSSL
:: SSL :: SSLContext (54) -
OpenSSL
:: SSL :: SSLSocket (1) -
OpenSSL
:: SSL :: Session (1) -
OpenSSL
:: X509 :: CRL (1) -
OpenSSL
:: X509 :: Certificate (1) -
OpenSSL
:: X509 :: Request (1) -
OpenSSL
:: X509 :: StoreContext (13) - PP (1)
- PrettyPrint (2)
-
RDoc
:: Context (27) -
RDoc
:: Context :: Section (3) -
RDoc
:: Markup (1) -
REXML
:: CData (2) -
REXML
:: DocType (1) -
REXML
:: Element (10) -
REXML
:: Instruction (2) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullEvent (1) -
REXML
:: Text (10) -
RSS
:: Maker :: TextinputBase (4) -
RSS
:: RDF :: Channel (2) -
RSS
:: RDF :: Channel :: Textinput (2) -
RSS
:: RDF :: Textinput (4) -
RSS
:: Rss :: Channel (2) -
RSS
:: Rss :: Channel :: TextInput (8) - String (3)
-
URI
:: MailTo (2) -
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPResponse (1) -
WEBrick
:: HTTPUtils :: FormData (1) -
WIN32OLE
_ METHOD (1) -
WIN32OLE
_ TYPE (1)
モジュール
-
CGI
:: HtmlExtension (4) -
IRB
:: ExtendCommandBundle (1) -
Net
:: HTTPHeader (3) -
OpenURI
:: Meta (1) -
RDoc
:: Text (3) -
REXML
:: SAX2Listener (1) -
REXML
:: StreamListener (3)
キーワード
- +@ (1)
- -@ (1)
- <=> (1)
- == (1)
- [] (1)
- []= (1)
-
add
_ alias (1) -
add
_ class (1) -
add
_ class _ or _ module (1) -
add
_ include (1) -
add
_ module (1) -
add
_ special (1) - aliases (1)
-
ap
_ name= (1) -
app
_ script _ text (1) -
auto
_ indent _ mode (1) -
auto
_ indent _ mode= (1) -
back
_ trace _ limit (1) -
back
_ trace _ limit= (1) - body (1)
-
ca
_ file (1) -
ca
_ file= (1) -
ca
_ path (1) -
ca
_ path= (1) - cert (1)
- cert= (1)
-
cert
_ store (1) -
cert
_ store= (1) - chain (1)
- characters (1)
- charset (1)
- ciphers (1)
- ciphers= (1)
- classes (1)
- cleanup (1)
-
client
_ ca (1) -
client
_ ca= (1) -
client
_ cert _ cb (1) -
client
_ cert _ cb= (1) - clone (1)
- code (1)
-
comma
_ breakable (1) - comment (1)
- content (1)
-
content
_ id (1) -
content
_ type (1) -
content
_ type= (1) - context (4)
- context= (1)
-
current
_ cert (1) -
current
_ crl (1) - debug? (1)
-
debug
_ level (1) -
debug
_ level= (1) - decrypt (1)
-
defined
_ in? (1) - description (2)
- description= (1)
- disposition (1)
- doctype (1)
-
each
_ classmodule (1) -
each
_ element _ with _ text (1) - echo (1)
- echo= (1)
- echo? (1)
- empty? (1)
-
enable
_ ssl (1) -
enable
_ starttls (1) -
enable
_ starttls _ auto (1) -
enable
_ tls (1) - entitydecl (1)
- error (1)
- error= (1)
-
error
_ depth (1) -
error
_ string (1) -
eval
_ history (1) -
eval
_ history= (1) - evaluate (1)
- extension (1)
-
extra
_ chain _ cert (1) -
extra
_ chain _ cert= (1) -
file
_ input? (1) -
find
_ enclosing _ module _ named (1) -
find
_ local _ symbol (1) -
find
_ module _ named (1) -
find
_ symbol (1) - flags= (1)
-
flush
_ left (1) -
flush
_ sessions (1) -
get
_ text (1) - gettextfile (2)
- group (1)
-
has
_ elements? (1) -
has
_ text? (1) - header (1)
- helpcontext (2)
-
history
_ file (1) -
history
_ file= (1) -
ignore
_ eof (1) -
ignore
_ eof= (1) -
ignore
_ eof? (1) -
ignore
_ sigint (1) -
ignore
_ sigint= (1) -
ignore
_ sigint? (1) -
in
_ files (1) - includes (1)
-
initialize
_ classes _ and _ modules (1) -
initialize
_ methods _ etc (1) - inspect? (1)
-
inspect
_ mode (1) - instruction (1)
- io= (1)
- irb= (1)
-
irb
_ context (1) -
irb
_ name= (1) -
irb
_ path= (1) - key (1)
- key= (1)
- language (1)
-
last
_ value (1) - lines (1)
- link (3)
- link= (3)
-
load
_ modules (1) -
main
_ type (1) - md5 (1)
-
method
_ list (1) - modules (1)
- multipart? (1)
- name (1)
- name= (1)
-
next
_ element (1) -
node
_ type (1) -
normalize
_ comment (1) -
ongoing
_ visibility= (1) - out (1)
- param (1)
- parts (1)
-
pretty
_ print _ cycle (1) -
prompt
_ c= (1) -
prompt
_ i= (1) -
prompt
_ mode (1) -
prompt
_ n= (1) -
prompt
_ s= (1) - prompting? (1)
- purpose= (1)
- puttextfile (2)
- raw (1)
- raw= (1)
- rc (1)
- rc? (1)
-
record
_ location (1) -
renegotiation
_ cb (1) -
renegotiation
_ cb= (1) - resource (1)
- resource= (1)
-
return
_ format= (1) -
save
_ history (1) -
save
_ history= (1) -
servername
_ cb (1) -
servername
_ cb= (1) -
session
_ add (1) -
session
_ cache _ mode (1) -
session
_ cache _ mode= (1) -
session
_ cache _ size (1) -
session
_ cache _ size= (1) -
session
_ cache _ stats (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 (1) -
session
_ remove _ cb (1) -
session
_ remove _ cb= (1) -
set
_ current _ section (1) -
set
_ last _ value (1) -
set
_ params (1) -
set
_ visibility _ for (1) -
ssl
_ context (1) -
ssl
_ timeout (1) -
ssl
_ timeout= (1) -
ssl
_ version= (1) -
strip
_ newlines (1) -
sub
_ type (1) - target (1)
- text= (1)
- text? (1)
- textInput (1)
- textInput= (1)
-
text
_ field (2) - textarea (2)
- textinput (1)
- textinput= (1)
- texts (1)
- time= (1)
- timeout (1)
- timeout= (1)
- title (4)
- title= (3)
-
tmp
_ dh _ callback (1) -
tmp
_ dh _ callback= (1) -
to
_ mailtext (1) -
to
_ rfc822text (1) -
to
_ s (2) -
to
_ text (10) - toplevel (1)
- trust= (1)
-
unicode
_ normalize! (1) -
unmatched
_ alias _ lists (1) -
unmatched
_ alias _ lists= (1) -
use
_ loader (1) -
use
_ loader= (1) -
use
_ loader? (1) -
use
_ readline (1) -
use
_ readline? (1) -
use
_ tracer (1) -
use
_ tracer= (1) -
use
_ tracer? (1) - value (2)
- value= (1)
- verbose (1)
- verbose= (1)
- verbose? (1)
- verify (2)
-
verify
_ callback (1) -
verify
_ callback= (1) -
verify
_ depth (1) -
verify
_ depth= (1) -
verify
_ mode (1) -
verify
_ mode= (1) - visibility (1)
- workspace= (1)
検索結果
先頭5件
- IRB
:: Context # verbose -> bool | nil - IRB
:: Context # verbose? -> bool | nil - Net
:: IMAP :: BodyTypeMultipart # parts -> [Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeMultipart] - OpenSSL
:: PKCS7 # decrypt(pkey , cert , flags = 0) -> String - OpenSSL
:: PKCS7 # verify(certs , store , indata = nil , flags = 0) -> bool
-
IRB
:: Context # verbose -> bool | nil (9604.0) -
標準出力に詳細なメッセージを出力するように設定されているかどうかを返し ます。
標準出力に詳細なメッセージを出力するように設定されているかどうかを返し
ます。
IRB::Context#verbose? とは別のメソッドである事に注意してください。
@return 詳細なメッセージを出力するように設定されている場合は true を返
します。そうでない場合は false か nil を返します。
@see IRB::Context#verbose?, IRB::Context#verbose= -
IRB
:: Context # verbose? -> bool | nil (9604.0) -
標準出力に詳細なメッセージを出力するかどうかを返します。
標準出力に詳細なメッセージを出力するかどうかを返します。
@return 詳細なメッセージを出力する場合は true を返します。そうでない場
合は false か nil を返します。
設定を行っていた場合(IRB::Context#verbose が true か false を返す
場合)は設定した通りに動作します。設定を行っていない場合は、ファイルを指
定して irb を実行した場合などに true を返します。
@see IRB::Context#verbose, IRB::Context#verbose= -
Net
:: IMAP :: BodyTypeMultipart # parts -> [Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeMultipart] (9604.0) -
マルチパートの各部分を返します。
マルチパートの各部分を返します。 -
OpenSSL
:: PKCS7 # decrypt(pkey , cert , flags = 0) -> String (9340.0) -
暗号化されたデータを復号化し、復号化されたデータを返します。
暗号化されたデータを復号化し、復号化されたデータを返します。
復号には暗号化に使った公開鍵に対応する秘密鍵と、その公開鍵を
含む証明書が必要です。
flags には以下のいずれかを指定できます。
* OpenSSL::PKCS7::TEXT
暗号化されたデータに付けられた text/plain タイプの MIME ヘッダ
を取り除きます。もしヘッダがなければエラーとなります。
@param pkey 復号化に使う秘密鍵(OpenSSL::PKey::PKey オブジェクト)
@param cert 対応する証明書(OpenSSL::X509::Certific... -
OpenSSL
:: PKCS7 # verify(certs , store , indata = nil , flags = 0) -> bool (9340.0) -
署名を検証します。
署名を検証します。
検証に成功した場合は真を、失敗した場合は偽を返します。
certs には署名者の証明書を含む配列を渡します。
通常 S/MIME 署名には証明者の証明書が含まれていますが、
OpenSSL::PKCS7.sign で OpenSSL::PKCS7::NOCERTS を渡した
場合には含まれていないので、明示的に渡す必要があります。
このメソッドは配列から適切な証明書を自動的に選択します。
store には検証に用いる証明書ストアを渡します。
検証に必要な信頼できる CA 証明書をあらかじめ証明書ストアに含めておく
必要があります。
indata は署名の対象となった... -
REXML
:: Instruction # content -> String | nil (9340.0) -
XML 処理命令の内容を返します。
XML 処理命令の内容を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content... -
REXML
:: SAX2Listener # characters(text) -> () (9325.0) -
XML の文字データに出会ったときに呼び出されるコールバックメソッドです。
XML の文字データに出会ったときに呼び出されるコールバックメソッドです。
@param text 文字データ(文字列)が渡されます -
WEBrick
:: HTTPUtils :: FormData # [](header) -> String | nil (9322.0) -
自身が multipart/form-data なデータの場合に、header で指定された ヘッダの値を文字列で返します。無ければ nil を返します。
自身が multipart/form-data なデータの場合に、header で指定された
ヘッダの値を文字列で返します。無ければ nil を返します。
@param header ヘッダ名を文字列で指定します。大文字と小文字を区別しません。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q']['content-type'] #=> "plain/text"
end
end
MyCGI.new.start() -
IRB
:: Context # ap _ name=(val) (9304.0) -
自身のアプリケーション名を val に設定します。
自身のアプリケーション名を val に設定します。
.irbrc ファイル中で IRB.conf[:AP_NAME] を設定する事でも同様の操作が行え
ます。
@param val アプリケーション名を String で指定します。
@see IRB::Context#ap_name -
IRB
:: Context # auto _ indent _ mode -> bool (9304.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
入力が次の行に継続した時に自動で字下げを行うかどうかを返します。
デフォルト値は false です。
@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。
@see IRB::Context#auto_indent_mode= -
IRB
:: Context # auto _ indent _ mode=(val) (9304.0) -
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。
@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。
@see IRB::Context#auto_indent_mode -
IRB
:: Context # debug? -> bool (9304.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 # echo -> bool (9304.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo= -
IRB
:: Context # echo=(val) (9304.0) -
irb のプロンプトでの評価結果を表示するかどうかを設定します。
irb のプロンプトでの評価結果を表示するかどうかを設定します。
.irbrc ファイル中で IRB.conf[:ECHO] を設定する事でも同様の操作が行えま
す。
@param val true を指定した場合、irb のプロンプトでの評価結果を表示しま
す。false を指定した場合は表示しません。
@see IRB::Context#echo -
IRB
:: Context # echo? -> bool (9304.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo= -
IRB
:: Context # ignore _ eof -> bool (9304.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) (9304.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 (9304.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 (9304.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
Ctrl-C が入力された時に irb を終了するかどうかを返します。
false の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint= -
IRB
:: Context # ignore _ sigint=(val) (9304.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 (9304.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
Ctrl-C が入力された時に irb を終了するかどうかを返します。
false の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint= -
IRB
:: Context # inspect? -> bool (9304.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 (9304.0) -
実行結果の出力方式を返します。
実行結果の出力方式を返します。
@see IRB::Context#inspect_mode= -
IRB
:: Context # io=(val) (9304.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # irb=(val) (9304.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # irb _ name=(val) (9304.0) -
起動しているコマンド名を val に設定します。
起動しているコマンド名を val に設定します。
@param val コマンド名を String で指定します。
@see IRB::Context#irb_name -
IRB
:: Context # irb _ path=(val) (9304.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # prompt _ c=(val) (9304.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=(val) (9304.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 (9304.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 _ n=(val) (9304.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=(val) (9304.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 # prompting? -> bool (9304.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # rc -> bool (9304.0) -
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
@return 設定ファイルの読み込みを行う場合は true を返します。行わない場
合(irb の起動時に -f オプションを指定した場合)は false を返しま
す。 -
IRB
:: Context # rc? -> bool (9304.0) -
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
~/.irbrc などの設定ファイルがあれば読み込みを行うかどうかを返します。
@return 設定ファイルの読み込みを行う場合は true を返します。行わない場
合(irb の起動時に -f オプションを指定した場合)は false を返しま
す。 -
IRB
:: Context # return _ format=(val) (9304.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
@see IRB::Context#return_format, print_format
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。 -
IRB
:: Context # save _ history -> Integer | nil (9304.0) -
履歴の最大保存件数を Integer か nil で返します。
履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 以下や
nil を返した場合は追加の保存は行いません。
@see lib:irb#history -
IRB
:: Context # save _ history=(val) (9304.0) -
履歴の最大保存件数を val に設定します。
履歴の最大保存件数を val に設定します。
.irbrc ファイル中で IRB.conf[:SAVE_HISTORY] を設定する事でも同様の事が
行えます。
@param val 履歴の最大保存件数を Integer で指定します。0 以下や
nil を返した場合は追加の保存は行いません。現在の件数より小さ
い値を設定した場合は、最新の履歴から指定した件数分のみが保存
されます。
@see lib:irb#history -
IRB
:: Context # use _ tracer -> bool (9304.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer= -
IRB
:: Context # use _ tracer=(val) (9304.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 (9304.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer= -
IRB
:: Context # verbose=(val) (9304.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 # workspace=(val) (9304.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (9304.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # description -> String | nil (9304.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # disposition -> Net :: IMAP :: ContentDisposition | nil (9304.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeText # extension -> Array | nil (9304.0) -
メッセージの拡張データを返します。
メッセージの拡張データを返します。 -
Net
:: IMAP :: BodyTypeText # md5 -> String | nil (9304.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
Net
:: IMAP :: BodyTypeText # param -> { String => String } | nil (9304.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (9304.0) -
レスポンスコードを返します。
レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode -
RDoc
:: Context # defined _ in?(file) (9304.0) -
Return true if at least part of this thing was defined in file
Return true if at least part of this thing was defined in file -
RDoc
:: Context # set _ current _ section(title , comment) -> () (9304.0) -
Handle sections
Handle sections -
RDoc
:: Context :: Section # ==(other) -> bool (9304.0) -
自身と other のシーケンス番号を比較した結果を返します。
自身と other のシーケンス番号を比較した結果を返します。
@param other RDoc::Context::Section オブジェクトを指定します。 -
RDoc
:: Context :: Section # comment -> String | nil (9304.0) -
section のコメントを返します。
section のコメントを返します。 -
REXML
:: CData # to _ s -> String (9040.0) -
テキスト文字列を返します。
テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//} -
REXML
:: Instruction # target -> String (9040.0) -
XML 処理命令のターゲットを返します。
XML 処理命令のターゲットを返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "t... -
REXML
:: StreamListener # instruction(name , instruction) -> () (9040.0) -
XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。
XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。
@param name ターゲット名が文字列で渡されます
@param instruction 処理命令の内容が文字列で渡されます
=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPIに対し
name: "xml-stylesheet"
instruction: " type=\"text/css\" href=\"style.css\""
という引数が渡されます。 -
PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () (940.0) -
与えられたブロックを実行します。 ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても よい同じグループに属すると仮定されます。
与えられたブロックを実行します。
ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても
よい同じグループに属すると仮定されます。
もう少し詳しく説明します。pretty printing アルゴリズムはインデントと改行を、
ツリー構造を作ることによって決定します。そして、group メソッドは子ノードの作成と
子ノードのインデントの深さの決定を担当します。
同じノード内で呼ばれた breakable は、改行するならば全て同時に改行します。
@param indent グループのインデントの深さを指定します。
@param open_obj 指定された場合、s... -
CGI
# header(options = "text / html") -> String (715.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。
CGI#out を使わずに自力で HTML を出力したい場合などに使います。
このメソッドは文字列エンコーディングを変換しません。
ヘッダのキーとしては以下が利用可能です。
: type
Content-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真ならば、HTTP のバージョン、ステータスコード、
Date ヘッ... -
CGI
# out(options = "text / html") { . . . . } (697.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
HEADリクエスト (REQUEST_METHOD == "HEAD") の場合は HTTP ヘッダのみを出力します。
charset が "iso-2022-jp"・"euc-jp"・"shift_jis" のいずれかで
ある場合は文字列エンコーディングを自動変換し、language を "ja"にします。
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
cgi = CGI.new
cgi.out{ "string" ... -
String
# +@ -> String | self (628.0) -
self が freeze されている文字列の場合、元の文字列の複製を返します。 freeze されていない場合は self を返します。
self が freeze されている文字列の場合、元の文字列の複製を返します。
freeze されていない場合は self を返します。
//emlist[例][ruby]{
# frozen_string_literal: false
original_text = "text"
unfrozen_text = +original_text
unfrozen_text.frozen? # => false
original_text == unfrozen_text # => true
original_text.equal?(unfro... -
String
# -@ -> String | self (628.0) -
self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
self が freeze されている文字列の場合、self を返します。
freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
//emlist[例][ruby]{
# frozen_string_literal: false
original_text = "text"
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_te... -
Net
:: IMAP :: BodyTypeMessage # body -> Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMultipart (604.0) -
ボディを返します。
ボディを返します。 -
Net
:: HTTPHeader # main _ type -> String|nil (418.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
"text/html" における "text" のようなタイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//} -
Net
:: HTTPHeader # content _ type -> String|nil (352.0) -
"text/html" のような Content-Type を表す 文字列を返します。
"text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/for... -
Net
:: HTTPHeader # sub _ type -> String|nil (352.0) -
"text/html" における "html" のようなサブタイプを表す 文字列を返します。
"text/html" における "html" のようなサブタイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.sub_type # => "html"
//} -
OpenURI
:: Meta # charset -> String | nil (340.0) -
対象となるリソースの文字コードを文字列で返します。Content-Type ヘッダの文字コード情報が使われます。 文字列は小文字へと変換されています。
対象となるリソースの文字コードを文字列で返します。Content-Type ヘッダの文字コード情報が使われます。
文字列は小文字へと変換されています。
Content-Type ヘッダがない場合は、nil を返します。ただし、ブロックが与えられている場合は、
その結果を返します。また対象となる URI のスキームが HTTP であり、自身のタイプが text である場合は、
2616 3.7.1 で定められているとおり、文字列 "iso-8859-1" を返します。
//emlist[例][ruby]{
require 'open-uri'
open("http://www.ruby-l... -
ObjectSpace
:: WeakMap # []=(key , value) (322.0) -
引数 key から引数 value への参照を作成します。
引数 key から引数 value への参照を作成します。
@param key 参照元のオブジェクトを指定します。
@param value 参照先のオブジェクトを指定します。
//emlist[例][ruby]{
weak_map = ObjectSpace::WeakMap.new
key = "text"
weak_map[key] = "test" # => test
weak_map[key] # => test
//} -
WEBrick
:: HTTPResponse # content _ type=(val) (322.0) -
Content-Type ヘッダの値をセットします。
Content-Type ヘッダの値をセットします。
@param val Content-Type ヘッダの値を文字列で指定します。
res.content_type = "text/html"
@see WEBrick::HTTPUtils.#mime_type