ライブラリ
- ビルトイン (10)
-
cgi
/ core (2) -
cgi
/ html (4) -
cgi
/ util (2) -
irb
/ context (44) -
irb
/ ext / history (2) -
irb
/ ext / save-history (4) -
irb
/ ext / tracer (3) -
irb
/ ext / use-loader (3) -
irb
/ extend-command (3) -
net
/ ftp (4) -
net
/ http (3) -
net
/ imap (12) -
net
/ smtp (5) - open-uri (1)
- openssl (103)
- pp (2)
- prettyprint (5)
-
rdoc
/ context (33) -
rdoc
/ markup (1) -
rdoc
/ markup / to _ html _ crossref (1) -
rdoc
/ text (3) - rexml (1)
-
rexml
/ document (40) -
rexml
/ parsers / pullparser (1) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (3) - rss (24)
-
rubygems
/ installer (1) - uri (2)
-
webrick
/ httpresponse (1) -
webrick
/ httputils (3) -
webrick
/ ssl (1) -
win32
/ registry (18) - win32ole (3)
クラス
- CGI (4)
-
Enumerator
:: Yielder (1) -
Gem
:: Installer (1) - IO (1)
-
IRB
:: Context (56) - Method (2)
-
Net
:: FTP (4) -
Net
:: IMAP :: BodyTypeMessage (1) -
Net
:: IMAP :: BodyTypeMultipart (1) -
Net
:: IMAP :: BodyTypeText (9) -
Net
:: IMAP :: ResponseText (1) -
Net
:: SMTP (5) - Object (1)
-
ObjectSpace
:: WeakMap (1) -
OpenSSL
:: Netscape :: SPKI (1) -
OpenSSL
:: PKCS7 (6) -
OpenSSL
:: PKey :: DH (1) -
OpenSSL
:: PKey :: DSA (1) -
OpenSSL
:: PKey :: EC (1) -
OpenSSL
:: PKey :: EC :: Group (1) -
OpenSSL
:: PKey :: RSA (1) -
OpenSSL
:: SSL :: SSLContext (67) -
OpenSSL
:: SSL :: SSLSocket (2) -
OpenSSL
:: SSL :: Session (1) -
OpenSSL
:: X509 :: CRL (1) -
OpenSSL
:: X509 :: Certificate (1) -
OpenSSL
:: X509 :: Request (1) -
OpenSSL
:: X509 :: StoreContext (14) - PP (1)
- PrettyPrint (5)
- Proc (2)
-
RDoc
:: Context (29) -
RDoc
:: Context :: Section (4) -
RDoc
:: Markup (1) -
RDoc
:: Markup :: ToHtmlCrossref (1) -
REXML
:: CData (3) -
REXML
:: DocType (1) -
REXML
:: Document (3) -
REXML
:: Element (11) -
REXML
:: Instruction (2) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullEvent (1) -
REXML
:: Text (13) -
REXML
:: XPath (2) -
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 (1)
-
WIN32OLE
_ METHOD (1) -
WIN32OLE
_ TYPE (1) -
Win32
:: Registry (9)
モジュール
-
CGI
:: HtmlExtension (4) -
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (1) -
Net
:: HTTPHeader (3) -
OpenURI
:: Meta (1) -
RDoc
:: Text (3) -
REXML
:: SAX2Listener (1) -
REXML
:: Security (2) -
REXML
:: StreamListener (3) -
WEBrick
:: HTTPUtils (2) -
Win32
:: Registry :: Constants (9)
キーワード
- +@ (1)
- -@ (1)
- << (2)
- <=> (1)
- == (1)
- >> (2)
- Comment (1)
-
DEFAULT
_ CERT _ STORE (1) -
DEFAULT
_ PARAMS (1) -
HKEY
_ CLASSES _ ROOT (2) -
HKEY
_ CURRENT _ CONFIG (2) -
HKEY
_ CURRENT _ USER (2) -
HKEY
_ DYN _ DATA (2) -
HKEY
_ LOCAL _ MACHINE (2) -
HKEY
_ PERFORMANCE _ DATA (2) -
HKEY
_ PERFORMANCE _ NLSTEXT (2) -
HKEY
_ PERFORMANCE _ TEXT (2) -
HKEY
_ USERS (2) - Instruction (1)
- METHODS (1)
- RSA (1)
-
SESSION
_ CACHE _ BOTH (1) -
SESSION
_ CACHE _ CLIENT (1) -
SESSION
_ CACHE _ NO _ AUTO _ CLEAR (1) -
SESSION
_ CACHE _ NO _ INTERNAL (1) -
SESSION
_ CACHE _ NO _ INTERNAL _ LOOKUP (1) -
SESSION
_ CACHE _ NO _ INTERNAL _ STORE (1) -
SESSION
_ CACHE _ OFF (1) -
SESSION
_ CACHE _ SERVER (1) - SSLContext (1)
- SSLSocket (1)
- StoreContext (1)
- TYPES (1)
- Text (1)
- TextInput (1)
- Textinput (1)
- VISIBILITIES (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)
-
def
_ extend _ command (1) -
default
_ ssl _ context (1) -
defined
_ in? (1) - description (2)
- description= (1)
- disposition (1)
- doctype (1)
- each (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) - encrypt (1)
-
entity
_ expansion _ text _ limit (2) -
entity
_ expansion _ text _ limit= (2) - entitydecl (1)
- error (1)
- error= (1)
-
error
_ depth (1) -
error
_ string (1) - escapeHTML (1)
-
escape
_ html (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) - first (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) -
install
_ extend _ commands (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
_ mime _ types (1) -
load
_ modules (1) -
main
_ type (1) - md5 (1)
-
method
_ list (1) -
mime
_ type (1) - modules (1)
- multipart? (1)
- name (1)
- name= (1)
- new (13)
-
next
_ element (1) -
node
_ type (1) - normalize (1)
-
normalize
_ comment (1) -
ole
_ show _ help (1) -
ongoing
_ visibility= (1) - openssl (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) -
rexml
/ document (1) -
rexml
/ parsers / pullparser (1) -
rexml
/ parsers / sax2parser (1) -
rexml
/ parsers / streamparser (1) -
rexml
/ parsers / ultralightparser (1) -
rubygems
/ security (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) - sign (1)
-
singleline
_ format (1) -
ssl
_ context (1) -
ssl
_ timeout (1) -
ssl
_ timeout= (1) -
ssl
_ version= (1) -
strip
_ newlines (1) -
sub
_ type (1) - target (1)
- text (3)
- 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
_ proc (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) - unnormalize (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)
- write (1)
-
write
_ smime (1) - リテラル (1)
検索結果
先頭5件
-
IRB
:: Context # save _ history -> Integer | nil (9301.0) -
履歴の最大保存件数を Integer か nil で返します。
履歴の最大保存件数を Integer か nil で返します。
@return 履歴の最大保存件数を Integer か nil で返します。0 以下や
nil を返した場合は追加の保存は行いません。
@see lib:irb#history -
IRB
:: Context # save _ history=(val) (9301.0) -
履歴の最大保存件数を val に設定します。
履歴の最大保存件数を val に設定します。
.irbrc ファイル中で IRB.conf[:SAVE_HISTORY] を設定する事でも同様の事が
行えます。
@param val 履歴の最大保存件数を Integer で指定します。0 以下や
nil を返した場合は追加の保存は行いません。現在の件数より小さ
い値を設定した場合は、最新の履歴から指定した件数分のみが保存
されます。
@see lib:irb#history -
IRB
:: Context # use _ tracer -> bool (9301.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer= -
IRB
:: Context # use _ tracer=(val) (9301.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 (9301.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer= -
IRB
:: Context # verbose=(val) (9301.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) (9301.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (9301.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # description -> String | nil (9301.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # disposition -> Net :: IMAP :: ContentDisposition | nil (9301.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeText # extension -> Array | nil (9301.0) -
メッセージの拡張データを返します。
メッセージの拡張データを返します。 -
Net
:: IMAP :: BodyTypeText # md5 -> String | nil (9301.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
Net
:: IMAP :: BodyTypeText # param -> { String => String } | nil (9301.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (9301.0) -
レスポンスコードを返します。
レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode -
RDoc
:: Context # defined _ in?(file) (9301.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) -> () (9301.0) -
Handle sections
Handle sections -
RDoc
:: Context :: Section # ==(other) -> bool (9301.0) -
自身と other のシーケンス番号を比較した結果を返します。
自身と other のシーケンス番号を比較した結果を返します。
@param other RDoc::Context::Section オブジェクトを指定します。 -
RDoc
:: Context :: Section # comment -> String | nil (9301.0) -
section のコメントを返します。
section のコメントを返します。 -
RDoc
:: Context :: TYPES -> ["class" , "instance"] (9301.0) -
メソッドの種類を文字列の配列で返します。
メソッドの種類を文字列の配列で返します。 -
Enumerator
:: Yielder # to _ proc -> Proc (9037.0) -
Enumerator.new で使うメソッドです。
Enumerator.new で使うメソッドです。
引数を Enumerator::Yielder#yield に渡す Proc を返します。
これは Enumerator::Yielder オブジェクトを他のメソッドにブロック引数と
して直接渡すために使えます。
//emlist[例][ruby]{
text = <<-END
Hello
こんにちは
END
enum = Enumerator.new do |y|
text.each_line(&y)
end
enum.each do |line|
p line
end
# => "Hello\n"
# "こんにちは... -
REXML
:: CData # to _ s -> String (9037.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 (9037.0) -
XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
XML 処理命令 とは XML 文書中の <? と ?> で挟まれた部分のことで、
アプリケーションへの指示を保持するために使われます。
XML 宣言(文書先頭の <?xml version=... ?>)はXML処理命令ではありませんが、
似た見た目を持っています。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-... -
REXML
:: Instruction # target -> String (9037.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) -> () (9037.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\""
という引数が渡されます。 -
リテラル (9037.0)
-
リテラル * num * string * backslash * exp * char * command * here * regexp * array * hash * range * symbol * percent
リテラル
* num
* string
* backslash
* exp
* char
* command
* here
* regexp
* array
* hash
* range
* symbol
* percent
数字の1や文字列"hello world"のようにRubyのプログラムの中に直接
記述できる値の事をリテラルといいます。
===[a:num] 数値リテラル
: 123
: 0d123
整数
: -123
符号つき整数
: 123.45
浮動小数点数。
.1 など "." で始まる浮動小... -
OpenSSL
:: PKey :: RSA (9019.0) -
RSA 暗号鍵のクラスです。
RSA 暗号鍵のクラスです。
通常このクラスで利用するのは、
OpenSSL::PKey::RSA.generate, OpenSSL::PKey::RSA.new,
OpenSSL::PKey::RSA#public?, OpenSSL::PKey::RSA#private?,
OpenSSL::PKey::RSA#public_key, OpenSSL::PKey::RSA#to_text,
OpenSSL::PKey::RSA#to_pem, OpenSSL::PKey::RSA#to_der
のいずれかでしょう。これ以外のメソッドを利用するときは
RSA についてよく理解し、必要な場... -
REXML
:: Comment (9019.0) -
XML コメントを表すクラス。
XML コメントを表すクラス。
コメントとは <!-- と --> で挟まれたテキストです。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!-- xx -->
<root>
<!-- yy -->
text
<!-- zz -->
</root>
EOS
doc[0].string # => " xx "
doc.root[1].string # => " yy "
doc.root[3].string # => " zz "
//} -
Win32
:: Registry :: Constants :: HKEY _ CURRENT _ CONFIG (9004.0) -
@todo
@todo
定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。 -
Win32
:: Registry :: Constants :: HKEY _ CURRENT _ USER (9004.0) -
@todo
@todo
定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。 -
Win32
:: Registry :: Constants :: HKEY _ DYN _ DATA (9004.0) -
@todo
@todo
定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。 -
Win32
:: Registry :: Constants :: HKEY _ PERFORMANCE _ DATA (9004.0) -
@todo
@todo
定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。 -
Win32
:: Registry :: Constants :: HKEY _ USERS (9004.0) -
@todo
@todo
定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。 -
Win32
:: Registry :: HKEY _ CURRENT _ CONFIG -> Win32 :: Registry (9004.0) -
@todo
@todo
それぞれの定義済キーを表す Win32::Registry オブジェクトです。
詳細は以下の MSDN Library を参照してください。
* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp -
Win32
:: Registry :: HKEY _ CURRENT _ USER -> Win32 :: Registry (9004.0) -
@todo
@todo
それぞれの定義済キーを表す Win32::Registry オブジェクトです。
詳細は以下の MSDN Library を参照してください。
* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp -
Win32
:: Registry :: HKEY _ DYN _ DATA -> Win32 :: Registry (9004.0) -
@todo
@todo
それぞれの定義済キーを表す Win32::Registry オブジェクトです。
詳細は以下の MSDN Library を参照してください。
* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp -
Win32
:: Registry :: HKEY _ PERFORMANCE _ DATA -> Win32 :: Registry (9004.0) -
@todo
@todo
それぞれの定義済キーを表す Win32::Registry オブジェクトです。
詳細は以下の MSDN Library を参照してください。
* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp -
Win32
:: Registry :: HKEY _ USERS -> Win32 :: Registry (9004.0) -
@todo
@todo
それぞれの定義済キーを表す Win32::Registry オブジェクトです。
詳細は以下の MSDN Library を参照してください。
* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp -
PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () (937.0) -
与えられたブロックを実行します。 ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても よい同じグループに属すると仮定されます。
与えられたブロックを実行します。
ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても
よい同じグループに属すると仮定されます。
もう少し詳しく説明します。pretty printing アルゴリズムはインデントと改行を、
ツリー構造を作ることによって決定します。そして、group メソッドは子ノードの作成と
子ノードのインデントの深さの決定を担当します。
同じノード内で呼ばれた breakable は、改行するならば全て同時に改行します。
@param indent グループのインデントの深さを指定します。
@param open_obj 指定された場合、s... -
CGI
# header(options = "text / html") -> String (712.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") { . . . . } (694.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 (625.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 (625.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 (601.0) -
ボディを返します。
ボディを返します。 -
Net
:: HTTPHeader # main _ type -> String|nil (415.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 (349.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 (349.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"
//} -
PrettyPrint
. new(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n") -> PrettyPrint (349.0) -
pretty printing のためのバッファを生成します。 output は出力先です。output は << メソッドを持っていなければなりません。 << メソッドには * PrettyPrint#text の第1引数 obj * PrettyPrint#breakable の第1引数 sep * PrettyPrint.new の第3引数 newline * PrettyPrint.new に与えたブロックを評価した結果 のどれかひとつが引数として与えられます。
pretty printing のためのバッファを生成します。
output は出力先です。output は << メソッドを持っていなければなりません。
<< メソッドには
* PrettyPrint#text の第1引数 obj
* PrettyPrint#breakable の第1引数 sep
* PrettyPrint.new の第3引数 newline
* PrettyPrint.new に与えたブロックを評価した結果
のどれかひとつが引数として与えられます。
ブロックが指定された場合は、空白を生成するために使われます。ブロックは、生成したい空白の幅を表す整数を引数として... -
PrettyPrint
. new(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n") {|width| . . . } -> PrettyPrint (349.0) -
pretty printing のためのバッファを生成します。 output は出力先です。output は << メソッドを持っていなければなりません。 << メソッドには * PrettyPrint#text の第1引数 obj * PrettyPrint#breakable の第1引数 sep * PrettyPrint.new の第3引数 newline * PrettyPrint.new に与えたブロックを評価した結果 のどれかひとつが引数として与えられます。
pretty printing のためのバッファを生成します。
output は出力先です。output は << メソッドを持っていなければなりません。
<< メソッドには
* PrettyPrint#text の第1引数 obj
* PrettyPrint#breakable の第1引数 sep
* PrettyPrint.new の第3引数 newline
* PrettyPrint.new に与えたブロックを評価した結果
のどれかひとつが引数として与えられます。
ブロックが指定された場合は、空白を生成するために使われます。ブロックは、生成したい空白の幅を表す整数を引数として... -
IO
. write(path , string , offset=nil , **opts) -> Integer (337.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
path で指定されるファイルを開き、string を書き込み、
閉じます。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドを実行し、コマンドの出力を標準出力に書き込みます。
offset を指定するとその位置までシークします。
offset を指定しないと、書き込みの末尾でファイルを
切り捨てます。
キーワード引数はファイルを開くときに使われ、エンコーディングなどを指定することができます。
詳しくは IO.open を見てください。
@param path ファイル名文字列
@param string 書き込む文字列
@param of... -
Method
# <<(callable) -> Proc (337.0) -
self と引数を合成した Proc を返します。
self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します。
Method#>> とは呼び出しの順序が逆になります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
def f(x)
x * x
end
def g(x)
x + x
end
# (3 + 3) * (3 + 3... -
Method
# >>(callable) -> Proc (337.0) -
self と引数を合成した Proc を返します。
self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します。
Method#<< とは呼び出しの順序が逆になります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
def f(x)
x * x
end
def g(x)
x + x
end
# (3 * 3) + (3 * 3... -
OpenURI
:: Meta # charset -> String | nil (337.0) -
対象となるリソースの文字コードを文字列で返します。Content-Type ヘッダの文字コード情報が使われます。 文字列は小文字へと変換されています。
対象となるリソースの文字コードを文字列で返します。Content-Type ヘッダの文字コード情報が使われます。
文字列は小文字へと変換されています。
Content-Type ヘッダがない場合は、nil を返します。ただし、ブロックが与えられている場合は、
その結果を返します。また対象となる URI のスキームが HTTP であり、自身のタイプが text である場合は、
2616 3.7.1 で定められているとおり、文字列 "iso-8859-1" を返します。
//emlist[例][ruby]{
require 'open-uri'
URI.open("http://www.ru... -
Proc
# <<(callable) -> Proc (337.0) -
self と引数を合成した Proc を返します。
self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します。
Proc#>> とは呼び出しの順序が逆になります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 + 3) * (3 + ... -
Proc
# >>(callable) -> Proc (337.0) -
self と引数を合成した Proc を返します。
self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します。
Proc#<< とは呼び出しの順序が逆になります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 * 3) + (3 * ... -
ObjectSpace
:: WeakMap # []=(key , value) (319.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) (319.0) -
Content-Type ヘッダの値をセットします。
Content-Type ヘッダの値をセットします。
@param val Content-Type ヘッダの値を文字列で指定します。
res.content_type = "text/html"
@see WEBrick::HTTPUtils.#mime_type -
rubygems
/ security (73.0) -
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
=== 署名付きの Gem パッケージ
==== 目次
* 概要
* 解説
* コマンドラインオプション
* OpenSSL リファレンス
* Bugs / TODO
* 作者について
==== 概要
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
以下のセクションでは、署名付きの Gem パッケージを作成する方法を
ステップバイステップで解説しています。
==== 解説
@todo メソッドではない
あなたが自分の Gem に署名するためには、...