種類
ライブラリ
- ビルトイン (41)
- abbrev (11)
-
cgi
/ html (22) - csv (44)
- etc (11)
-
irb
/ output-method (22) - logger (1)
-
net
/ http (105) - pathname (11)
- pp (44)
- prettyprint (22)
- prime (66)
- psych (165)
- rake (33)
- readline (22)
-
ripper
/ lexer (11) - shell (6)
-
shell
/ builtin-command (36) -
shell
/ command-processor (6) -
shell
/ filter (6) - socket (198)
-
webrick
/ httpproxy (22) -
webrick
/ httpstatus (44) -
webrick
/ httputils (11)
クラス
- CSV (44)
-
IRB
:: OutputMethod (22) - Integer (22)
-
Logger
:: Application (1) -
Net
:: HTTP (11) - Object (11)
- PP (44)
- Pathname (11)
- PrettyPrint (22)
- Prime (44)
-
Psych
:: Handler (22) -
Psych
:: Nodes :: Mapping (132) -
Rake
:: InvocationChain (22) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) - Ripper (11)
-
RubyVM
:: InstructionSequence (22) - Shell (6)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (99)
-
WEBrick
:: HTTPProxyServer (11) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
- Abbrev (11)
-
CGI
:: HtmlExtension (22) - Etc (11)
- Readline (22)
-
RubyVM
:: AbstractSyntaxTree (8) -
Socket
:: Constants (99) -
WEBrick
:: HTTPStatus (22)
キーワード
- ANY (11)
- AppendFile (6)
- AppendIO (6)
- BLOCK (11)
- DOSISH 対応 (11)
- FLOW (11)
- HTTPPartialContent (11)
- HTTPPaymentRequired (11)
- HTTPPermanentRedirect (10)
- HTTPPreconditionFailed (11)
- HTTPPreconditionRequired (11)
- HTTPProcessing (7)
- HTTPProxyAuthenticationRequired (11)
- HTTPProxyServer (11)
- HTTPUnsupportedMediaType (11)
- HTTPVersionNotSupported (22)
-
IPPROTO
_ AH (22) -
IPPROTO
_ HELLO (22) -
IPPROTO
_ HOPOPTS (22) -
IPPROTO
_ ICMP (22) -
IPPROTO
_ IP (22) -
IPPROTO
_ IPV6 (22) -
IPPROTO
_ RAW (22) -
IPPROTO
_ TCP (22) -
IPPROTO
_ UDP (22) - ISUPPER (11)
- Mapping (11)
-
NEWS for Ruby 3
. 0 . 0 (4) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (11) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (11) -
SCRIPT
_ LINES _ _ (11) -
SC
_ MAPPED _ FILES (11) - UnsupportedMediaType (11)
- abbrev (11)
- anchor (11)
- anchor= (11)
- append (51)
-
append
_ data (11) -
block
_ append (11) -
compile
_ option (11) -
completion
_ append _ character (11) -
completion
_ append _ character= (11) - debug (11)
- each (44)
-
each
_ prime (22) -
end
_ mapping (11) - entries (11)
- form (22)
- format (11)
- implicit (11)
- implicit= (11)
- input= (12)
- irb (11)
-
list
_ append (11) -
literal
_ append (11) - new (34)
- parse (22)
-
parse
_ file (8) - ppx (11)
- proppatch (11)
- read (11)
- readlines (11)
-
rexml
/ parsers / ultralightparser (11) - seplist (11)
-
set
_ log (1) -
sharing
_ detection (11) -
sharing
_ detection= (11) -
singleline
_ format (11) -
start
_ mapping (11) - style (11)
- style= (11)
- tag (11)
- tag= (11)
-
to
_ a (11) -
token
_ match (11) -
webrick
/ httpproxy (11)
検索結果
先頭5件
-
PP
. pp(obj , out = $ > , width = 79) -> object (35319.0) -
指定されたオブジェクト obj を出力先 out に幅 width で出力します。 出力先 out を返します。
...幅 width で出力します。
出力先 out を返します。
@param obj 表示したいオブジェクトを指定します。
@param out 出力先を指定します。<< メソッドが定義されている必要があります。
@param width 出力先の幅を指定します。
//emlist[]......[ruby]{
require 'pp'
str = PP.pp(b], [:a, [[:a, [:a, [:a, :b], [:a, :b],]]], '', 20)
puts str
# =>
# [[:a, :b],
# [:a,
# [[:a,
# [:a, [:a, :b]]],
# [:a, :b]]]]
//}
@see $>... -
PP
. sharing _ detection -> bool (29256.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...true である場合、
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
require 'pp'
b = [1, 2, 3]
a = [b, b]
pp a......#=> [[1, 2, 3], [1, 2, 3]]
PP.sharing_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
PP
. sharing _ detection=(boolean) (29256.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...true である場合、
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
require 'pp'
b = [1, 2, 3]
a = [b, b]
pp a......#=> [[1, 2, 3], [1, 2, 3]]
PP.sharing_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
PP
. sharing _ detection -> bool (29250.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
b = [1, 2, 3]
a = [b, b]
pp a #=> [[1, 2, 3], [1, 2, 3]]
PP.sh......aring_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
PP
. sharing _ detection=(boolean) (29250.0) -
共有検出フラグを表すアクセサです。 デフォルトは false です。true である場合、 PP.pp は一度出力したオブジェクトを再び出力する時 Object#pretty_print_cycle を使います。
...
PP.pp は一度出力したオブジェクトを再び出力する時
Object#pretty_print_cycle を使います。
@param boolean 共有検出フラグを true か false で指定します。
//emlist[][ruby]{
b = [1, 2, 3]
a = [b, b]
pp a #=> [[1, 2, 3], [1, 2, 3]]
PP.sh......aring_detection = true
pp a #=> [[1, 2, 3], [...]]
//}... -
irb (26102.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......ibrary ruby -r と同じ
-I ruby -I と同じ
-U ruby -U と同じ
-E enc ruby -E と同じ
--verbose これから実行する行を表示する
--noverbose これから実行する行を表示しない (デフォルト)
--ech......[:INSPECT_MODE] に以下のいずれかの値を設定する事で、結果出力の
方式を変更する事ができます。
: false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp,... -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (24400.0) -
与えられた値を追加した Rake::InvocationChain を返します。
...与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。... -
IRB
:: OutputMethod # pp(*objs) -> object (24101.0) -
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
...各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。... -
PP
# seplist(list , sep = lambda { comma _ breakable } , iter _ method = :each) {|e| . . . } -> () (23330.0) -
リストの各要素を何かで区切りつつ、自身に追加していくために使われます。
...list を iter_method によってイテレートし、各要素を引数としてブロックを実行します。
また、それぞれのブロックの実行の合間に sep が呼ばれます。
つまり、以下のふたつは同値です。
//emlist[][ruby]{
q.seplist([1,2,3]) {|v| q.pp v......q.pp 1
q.comma_breakable
q.pp 2
q.comma_breakable
q.pp 3
//}
@param list 自身に追加したい配列を与えます。iter_method を適切に指定すれば、
Enumerable でなくても構いません。
@param sep 区切りを自身に追加するブロックを与えます。lis......t がイテレートされないなら、
sep は決して呼ばれません。
@param iter_method list をイテレートするメソッドをシンボルで与えます。
@see PP#comma_breakable... -
WEBrick
:: HTTPStatus :: HTTPVersionNotSupported (21000.0) -
HTTP のステータスコード 505 HTTP Version Not Supported を表すクラスです。
...HTTP のステータスコード 505 HTTP Version Not Supported を表すクラスです。... -
Socket
:: Constants :: IPPROTO _ IP -> Integer (18306.0) -
Internet protocol。 BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
...Internet protocol。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see netinet/in.h(header)
ip(4freebsd), ip(7linux)... -
Socket
:: Constants :: IPPROTO _ IPV6 -> Integer (18306.0) -
Internet Protocol Version 6。 BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
...Internet Protocol Version 6。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see netinet/in.h(header)
ip6(4freebsd), ipv6(7linux)
2292...