3005件ヒット
[1-100件を表示]
(0.150秒)
種類
ライブラリ
- English (48)
- ビルトイン (1124)
-
cgi
/ core (24) -
cgi
/ util (60) - csv (132)
- erb (24)
- gdbm (12)
-
irb
/ context (36) -
irb
/ help (12) -
irb
/ output-method (36) - json (24)
- monitor (24)
-
net
/ http (132) -
net
/ pop (108) -
net
/ smtp (24) -
net
/ telnet (12) - nkf (12)
- open3 (24)
- openssl (120)
- pp (72)
- prettyprint (205)
- profiler (6)
-
rdoc
/ stats (12) - readline (24)
-
rexml
/ document (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ requirement (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (84)
- stringio (36)
- syslog (36)
- tempfile (60)
- thread (4)
- timeout (21)
- uri (24)
-
webrick
/ httpresponse (60) - zlib (84)
クラス
-
ARGF
. class (72) - Addrinfo (24)
- Array (72)
- CGI (84)
- CSV (108)
-
CSV
:: Table (24) - ERB (24)
- File (36)
-
File
:: Stat (24) - GDBM (12)
-
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Requirement (12) - IO (300)
-
IRB
:: Context (36) -
IRB
:: OutputMethod (24) -
IRB
:: StdioOutputMethod (12) - Integer (96)
-
JSON
:: Parser (24) - Module (12)
-
Net
:: HTTP (120) -
Net
:: POPMail (108) -
Net
:: SMTP (24) -
Net
:: Telnet (10) - Object (84)
-
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: BN (12) - PP (24)
- PrettyPrint (193)
-
RDoc
:: Stats (12) - Range (24)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (36)
- String (24)
- StringIO (36)
- Tempfile (60)
- Thread (12)
-
URI
:: MailTo (24) -
WEBrick
:: HTTPResponse (60) -
Zlib
:: GzipReader (36) -
Zlib
:: GzipWriter (48)
モジュール
- Enumerable (60)
- IRB (12)
- Kernel (372)
- Open3 (24)
-
OpenSSL
:: ASN1 (36) -
OpenSSL
:: Buffering (24) -
Profiler
_ _ (6) - Readline (24)
- Syslog (36)
- Timeout (21)
キーワード
-
$ , (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ > (12) -
$ CHILD _ STATUS (12) -
$ DEFAULT _ OUTPUT (12) -
$ ORS (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ \ (12) -
$ _ (12) -
$ stdout (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (12)
- ConditionVariable (12)
- DATA (12)
- HTTPRequest (12)
- ISPRINT (12)
- Interrupt (12)
- Monitor (12)
- MonitorMixin (12)
- NKF (12)
-
NOPRINTING
_ IVARS (12) - PRINTABLESTRING (12)
- PrettyPrint (12)
- PrintableString (36)
- Rubyの起動 (7)
- SSLSocket (12)
- SizedQueue (12)
- TCPServer (12)
- TCPSocket (12)
- Telnet (2)
- Transitive (12)
- [] (24)
- all (36)
- bigdecimal (12)
- body= (12)
- breakable (24)
- chunk (12)
- chunked= (12)
-
close
_ write (12) -
completion
_ proc= (12) - connect (12)
-
connect
_ from (24) -
content
_ length (12) -
content
_ length= (12) - cycle (36)
-
def
_ class (12) -
def
_ module (12) - delete (12)
- downto (24)
- each (48)
-
each
_ char (36) -
each
_ codepoint (24) -
each
_ entry (24) -
error
_ print (12) - escapeHTML (12)
-
escape
_ html (12) - fail (12)
- fdatasync (12)
- fetch (36)
- first? (1)
- flush (12)
-
force
_ quotes? (12) - foreach (24)
- format (12)
- generate (12)
- genspace (12)
- get2 (24)
-
get
_ print (24) - group (12)
- header (12)
- indent (12)
-
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) - instance (24)
-
instance
_ method (12) - length (12)
- loop (24)
- mail (36)
- mask (12)
- maxwidth (12)
- nest (12)
-
net
/ http (12) - new (76)
- newline (12)
- open (108)
- open! (12)
- output (12)
- p (12)
- pop (36)
- popen (168)
- popen3 (24)
- pos (12)
- post2 (24)
- pretty (12)
-
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
pretty
_ print _ inspect (12) -
pretty
_ print _ instance _ variables (12) - prettyprint (12)
-
print
_ dependencies (12) -
print
_ profile (6) -
print
_ undef (12) -
print
_ usage (12) - printf (84)
- printn (12)
- puts (26)
- raise (12)
- rake (12)
-
rb
_ ary _ to _ s (12) -
rb
_ parser _ append _ print (12) -
rb
_ parser _ while _ loop (12) - readline (12)
- ready (12)
- reopen (36)
-
request
_ get (24) -
request
_ post (24) -
return
_ format (12) -
return
_ format= (12) -
reverse
_ each (24) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 5 feature (12) - select (12)
-
sharing
_ detection (12) -
sharing
_ detection= (12) -
singleline
_ format (12) - size (12)
- size? (12)
- source (12)
- sprintf (12)
- sprintf フォーマット (12)
- stop (12)
- sysseek (12)
- system (18)
- tcp (24)
- tell (12)
- text (24)
- timeout (21)
- times (24)
-
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (24) - tsort (12)
- unescapeElement (12)
-
unescape
_ element (12) - ungetc (12)
- unlink (12)
-
untrace
_ var (12) - upto (24)
- wrap (12)
- write (2)
- リテラル (12)
- 制御構造 (12)
- 正規表現 (12)
検索結果
先頭5件
-
tsort (26120.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
=== Example
//emlist[][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
{1=>[2, 3],......=>[]}.tsort
#=> [3, 2, 1, 4]
{1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
=== より現実的な例
非常に単純な `make' に似たツールは以下のように実装できます。
//emlist[][ruby]{
require 'tsort'
class Make
def initialize......nputs_time != nil && outputs_time <= inputs_time
sleep 1 if inputs_time != nil && inputs_time.to_i == Time.now.to_i
block.call
end
end
}
end
def tsort_each_child(node, &block)
@dep[node].each(&block)
end
include TSort
end
def command(arg)
print a... -
Kernel
. # print(*arg) -> nil (24243.0) -
引数を順に標準出力 $stdout に出力します。引数が与えられない時には変数 $_ の値を出力します。
...引数を順に標準出力 $stdout に出力します。引数が与えられない時には変数
$_ の値を出力します。
文字列以外のオブジェクトが引数として与えられた場合には、
to_s メソッドにより文字列に変換してから出力します。
変数......た場合に発生します。
//emlist[例][ruby]{
print "Hello, world!"
print "Regexp is",/ant/
print nil
print "\n"
#=> Hello, world!Regexp is(?-mix:ant)
$_ = "input"
$, = "<and>"
$\ = "<end>\n"
print
print "AA","BB"
#=> input<end>
#=> AA<and>BB<end>
//}
@see Kernel.#puts,Kernel.#p,IO#print... -
StringIO
# print() -> nil (24224.0) -
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。 引数の扱いは Kernel.#print を参照して下さい。
...は Kernel.#print を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.print("hoge", "b......ar", "foo")
a.string #=> "hogebarfoo"
//}... -
StringIO
# print(*obj) -> nil (24224.0) -
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。 引数の扱いは Kernel.#print を参照して下さい。
...は Kernel.#print を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.print("hoge", "b......ar", "foo")
a.string #=> "hogebarfoo"
//}... -
CGI
# print(*strings) (24219.0) -
@todo
...@todo
引数の文字列を標準出力に出力します。
cgi.print は $DEFAULT_OUTPUT.print と等価です。
例:
cgi = CGI.new
cgi.print "This line is a part of content body.\r\n"... -
IO
# print(*arg) -> nil (24219.0) -
引数を IO ポートに順に出力します。引数を省略した場合は、$_ を出力します。
...Kernel.#print と同じです。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
//emlist[例][ruby]{
$stdout.print("This is ", 100, " percent.\n") # => This is 100 percent.
//}
@......see Kernel.#print... -
Zlib
:: GzipWriter # print(*str) -> nil (24219.0) -
引数を自身に順に出力します。引数を省略した場合は、$_ を出力します。
...。
@param str 出力するオブジェクトを指定します。
require 'zlib'
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.print "ugo"
}
fr = File.open(filename)
Zlib::GzipReader.wrap(fr){|gz|
puts gz.read......}
#=> ugo
@see IO#print, Kernel.#print... -
ARGF
. class # print(*arg) -> nil (24207.0) -
引数を順に処理対象のファイルに出力します。
...引数を順に処理対象のファイルに出力します。
c:ARGF#inplace時にのみ使用できます。
また $stdout への代入の影響を受けません。
それ以外は Kernel.#print と同じです。
@param arg 出力するオブジェクトを任意個指定します。... -
OpenSSL
:: Buffering # print(*args) -> nil (24207.0) -
args を順に出力します。
...args を順に出力します。
args の各要素を to_s で文字列に変換して
出力します。
IO#print とほぼ同様ですが、引数を省略した場合に $_ を出力する
機能はありません。
@param args 出力するオブジェクト...