829件ヒット
[1-100件を表示]
(0.022秒)
ライブラリ
- ビルトイン (76)
-
cgi
/ html (12) - coverage (8)
- csv (24)
- e2mmap (18)
- fcntl (12)
- logger (1)
- mkmf (24)
-
mutex
_ m (12) -
net
/ ftp (10) -
net
/ imap (12) - openssl (12)
- pp (24)
- prettyprint (13)
- prime (24)
- psych (12)
- rake (156)
- readline (24)
-
rexml
/ sax2listener (24) - ripper (12)
-
ripper
/ filter (12) -
ripper
/ lexer (36) -
ripper
/ sexp (24) - shell (6)
-
shell
/ builtin-command (36) -
shell
/ command-processor (6) -
shell
/ filter (6) -
webrick
/ httpproxy (24) -
webrick
/ httputils (12)
クラス
- Array (16)
- CSV (24)
- Coverage (8)
- Integer (12)
- Method (14)
- Module (12)
-
Net
:: FTP :: MLSxEntry (10) -
Net
:: IMAP (12) - Object (24)
- PrettyPrint (13)
- Prime (24)
-
Psych
:: Handler (12) -
Rake
:: Application (84) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) - Ripper (72)
- Shell (6)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
-
CGI
:: TagMaker (12) - Enumerable (12)
- Exception2MessageMapper (18)
- Fcntl (12)
-
File
:: Constants (12) - Kernel (24)
-
Mutex
_ m (12) -
REXML
:: SAX2Listener (24) - Rake (24)
-
Rake
:: TaskManager (12) - Readline (24)
-
RubyVM
:: AbstractSyntaxTree (10)
キーワード
- << (7)
- >> (7)
- APPEND (12)
- AppendFile (6)
- AppendIO (6)
- Application (1)
- Fail (6)
- Filter (12)
- HTTPProxyServer (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
O
_ APPEND (12) - Raise (6)
- append (74)
-
append
_ data (12) -
append
_ features (24) - appendable? (10)
- application (12)
- application= (12)
-
block
_ append (12) - chunk (12)
-
completion
_ append _ character (12) -
completion
_ append _ character= (12) - coverage (8)
- each (24)
-
end
_ mapping (12) -
end
_ prefix _ mapping (12) -
end
_ seen? (12) -
extend
_ object (6) - first? (1)
- format (12)
- input= (12)
- irb (12)
- lex (12)
-
list
_ append (12) -
literal
_ append (12) -
local
_ append (12) -
nOE
_ element _ def (12) - name (12)
- new (24)
- of (10)
-
original
_ dir (12) - parse (24)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - push (8)
- rakefile (12)
-
rb
_ mod _ append _ features (12) -
rb
_ parser _ append _ print (12) -
rexml
/ document (12) -
ruby 1
. 8 . 5 feature (12) - sexp (12)
-
sexp
_ raw (12) - slice (12)
- start (8)
-
start
_ prefix _ mapping (12) - tasks (12)
-
to
_ bn (12) - tokenize (12)
-
top
_ level (12) -
top
_ level _ tasks (12) -
try
_ cpp (24) - tsort (12)
-
tty
_ output= (12)
検索結果
先頭5件
-
pp (38162.0)
-
オブジェクトなどを見やすく出力するためのライブラリです。
...このライブラリを require すると Kernel.#pp が定義されます。
Kernel.#p のかわりに Kernel.#pp を使うことにより、
適切にインデントと改行された分かりやすい出力を得ることが出来ます。
pp ライブラリは、ユーザがあたらしく定......表示を
するように作られていますので、Kernel.#pp を使う上で余計な作業をする
必要はありません。
=== どちらが読みやすいでしょうか?
p による pretty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0],......例です。
//emlist[][ruby]{
require 'pp'
class Hash
def pretty_print(q)
q.group(2, "<hash>") do
q.breakable
first = true
self.each{|k, v|
unless first
q.text(',')
q.breakable
end
q.pp k
q.text ' => '
q.group(1)......などを見やすく出力するためのライブラリです。
pp ライブラリは、ユーザがあたらしく定義したクラスに対しても見やすい表示を
するように作られていますので、Kernel.#pp を使う上で余計な作業をする
必要はありません。......=== どちらが読みやすいでしょうか?
p による pretty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0], @newline="\n",
@buf=#<PrettyPrint::Group:0x81a0c98 @group=0, @tail=0, @buf=[#<PrettyPrint::Gro
up:0x81a0ba8 @group=1, @tail=0, @......q.breakable
end
q.pp k
q.text ' => '
q.group(1) do
q.breakable ''
if v.is_a?(String) and v.size > 10
q.pp(v[0..9] + '...')
else
q.pp v
end
end
first = false
}
end
q.breaka... -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (12600.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (12600.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Shell
:: Filter # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (12600.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Module
# append _ features(module _ or _ class) -> self (12212.0) -
モジュール(あるいはクラス)に self の機能を追加します。
...ude(*modules)
modules.reverse_each do |mod|
# append_features や included はプライベートメソッドなので
# 直接 mod.append_features(self) などとは書けない
mod.__send__(:append_features, self)
mod.__send__(:included, self)
end
end
//}
@see Module#included... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (12206.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...た場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (12206.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...e::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}... -
Psych
:: Handler # end _ mapping -> () (12201.0) -
mapping の終了の見付けたときに呼び出されます。
...mapping の終了の見付けたときに呼び出されます。
必要に応じてこのメソッドを override してください。... -
REXML
:: SAX2Listener # end _ prefix _ mapping(prefix) -> () (12201.0) -
名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。
名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。
@param prefix 接頭辞の文字列が渡されます -
Array
# append(*obj) -> self (12200.0) -
指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。
指定された obj を順番に配列の末尾に追加します。
引数を指定しなければ何もしません。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p array # => [1, 2, 3, 4, [5, 6], 7, 8]
//}
@see Array#pop, Array#shift, Array#unshift, Array#<< -
Fcntl
:: O _ APPEND -> Integer (12200.0) -
ファイルを追記モードで開きます。
ファイルを追記モードで開きます。