1016件ヒット
[1001-1016件を表示]
(0.067秒)
ライブラリ
- ビルトイン (298)
- csv (25)
- dbm (11)
- gdbm (11)
- matrix (34)
-
minitest
/ spec (1) -
minitest
/ unit (1) - monitor (11)
-
net
/ http (11) - nkf (11)
- openssl (110)
- pathname (16)
- pp (11)
- pstore (33)
- psych (11)
- rake (99)
- readline (33)
-
rexml
/ document (33) -
rexml
/ parsers / pullparser (22) -
rubygems
/ package / tar _ header (11) - sdbm (11)
- set (11)
- strscan (22)
- thread (16)
- thwait (12)
- win32ole (33)
クラス
- Array (14)
-
CSV
:: Row (11) -
CSV
:: Table (11) - DBM (11)
- Dir (8)
-
Encoding
:: Converter (55) - File (16)
- GDBM (11)
-
Gem
:: Package :: TarHeader (11) - Hash (11)
- IO (33)
- Matrix (34)
-
Net
:: HTTP (11) - Object (12)
- PStore (33)
- Pathname (16)
-
Psych
:: Handler (11) -
REXML
:: Elements (11) -
REXML
:: Entity (11) -
REXML
:: Parsers :: PullParser (22) -
REXML
:: Text (11) -
Rake
:: InvocationChain (55) -
Rake
:: InvocationChain :: EmptyInvocationChain (33) - SDBM (11)
- Set (11)
- String (11)
- StringScanner (22)
- Symbol (11)
-
Thread
:: Queue (53) -
Thread
:: SizedQueue (40) - ThreadsWait (12)
-
WIN32OLE
_ VARIANT (11)
モジュール
- FileTest (27)
- GC (5)
- Kernel (11)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: SSL (110) - Rake (11)
-
WIN32OLE
:: VARIANT (22)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (33)
キーワード
- ConditionVariable (11)
- EMPTY (11)
-
EMPTY
_ MARSHAL _ CHECKSUM (11) -
EMPTY
_ MARSHAL _ DATA (11) -
EMPTY
_ STRING (11) -
EMPTY
_ TASK _ ARGS (11) - MonitorMixin (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) - NKF (11)
-
OP
_ DONT _ INSERT _ EMPTY _ FRAGMENTS (11) -
OP
_ MICROSOFT _ BIG _ SSLV3 _ BUFFER (11) -
OP
_ MICROSOFT _ SESS _ ID _ BUG (11) -
OP
_ MSIE _ SSLV2 _ RSA _ PADDING (11) -
OP
_ NETSCAPE _ CHALLENGE _ BUG (11) -
OP
_ NETSCAPE _ REUSE _ CIPHER _ CHANGE _ BUG (11) -
OP
_ SSLEAY _ 080 _ CLIENT _ DH _ BUG (11) -
OP
_ SSLREF2 _ REUSE _ CERT _ TYPE _ BUG (11) -
OP
_ TLS _ BLOCK _ PADDING _ BUG (11) -
OP
_ TLS _ D5 _ BUG (11) - Ruby用語集 (11)
-
VT
_ EMPTY (11) -
VT
_ NULL (11) - antisymmetric? (6)
- append (33)
-
assert
_ empty (1) -
cgi
/ session (11) - close (9)
-
close
_ on _ empty _ response (11) - deq (22)
- empty? (254)
- eos? (11)
-
executable
_ real? (11) -
has
_ next? (11) - length (11)
- matches? (11)
- member? (22)
-
must
_ be _ empty (1) -
next
_ wait (6) - optparse (11)
- pop (22)
- pp (11)
-
pretty
_ print _ cycle (11) -
primitive
_ convert (44) -
primitive
_ errinfo (11) - read (33)
-
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) - shift (22)
- size (11)
-
skew
_ symmetric? (6) -
to
_ csv (3) -
to
_ s (22) -
verify
_ compaction _ references (5) - warn (11)
- zero? (24)
- 制御構造 (11)
検索結果
-
制御構造 (30.0)
-
制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END
...はその引数になります。
====[a:next] next
//emlist[例][ruby]{
# 空行を捨てるcat
ARGF.each_line do |line|
next if line.strip.empty?
print line
end
//}
文法:
next
next val
nextはもっとも内側のループの次の繰り返しにジャンプしま......ます。
//emlist[][ruby]{
def iter
# (a)
# :
# (b)
yield
# (c)
# :
# (d)
end
iter { redo } # -> (b) へ飛ぶ
iter { next } # -> (c) へ飛ぶ
iter { break } # -> (d) へ飛ぶ
//}
(a) は、厳密には引数評価から始まります。(b) はブロック実行の直前......def iter(var = p("(a)"))
yield
p "(c)"
ensure
p "(d)"
end
iter { p "(b)"; redo } # -> (a) .. (b)(b)(b)(b) ...
iter { p "(b)"; next } # -> (a) .. (b)(c) .. (d)
iter { p "(b)"; break } # -> (a)..(b)(d)
//}
====[a:retry] retry
例:
retry
文法:
retry
retr... -
pp (24.0)
-
オブジェクトなどを見やすく出力するためのライブラリです。
...、Kernel.#pp を使う上で余計な作業をする
必要はありません。
=== どちらが読みやすいでしょうか?
p による pretty-print されてない出力:
#<PP:0x81a0d10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0], @newline="\n",
@buf=#<PrettyPrint::Group:0x81a0c9......end
end
first = false
}
end
q.breakable
q.text "</hash>"
end
def pretty_print_cycle(q)
q.text(empty? ? '{}' : '{...}')
end
end
h = {:a => 'a'*5, :b => 'b'*10, :c => 'c'*20, :d => 'd'*30}
pp h
#=>
# <hash>
# :d => "dddddddddd...",
# :a =>...