358件ヒット
[1-100件を表示]
(0.101秒)
ライブラリ
- ビルトイン (55)
-
cgi
/ core (22) -
irb
/ context (11) - json (11)
-
net
/ pop (99) -
net
/ telnet (6) - pp (22)
- prettyprint (11)
-
rubygems
/ commands / dependency _ command (11) -
rubygems
/ requirement (11) - socket (11)
- stringio (33)
- uri (22)
-
webrick
/ httpresponse (33)
クラス
-
ARGF
. class (11) - CGI (22)
-
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: Requirement (11) -
IRB
:: Context (11) -
JSON
:: Parser (11) - Module (11)
-
Net
:: POPMail (99) -
Net
:: Telnet (6) - Object (33)
- PrettyPrint (11)
- Socket (11)
- String (22)
- StringIO (33)
-
URI
:: MailTo (22) -
WEBrick
:: HTTPResponse (33)
キーワード
- all (33)
- connect (11)
-
content
_ length (11) -
content
_ length= (11) -
each
_ char (22) - header (11)
-
inplace
_ mode (11) -
instance
_ method (11) - mail (33)
- newline (11)
- pop (33)
-
pretty
_ print (11) -
pretty
_ print _ inspect (11) -
pretty
_ print _ instance _ variables (11) -
print
_ dependencies (11) - printf (11)
- puts (2)
-
return
_ format (11) - source (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (22) - write (2)
検索結果
先頭5件
-
StringIO
# print() -> nil (21131.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 (21131.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"
//}... -
String
# each _ char -> Enumerator (21013.0) -
文字列の各文字に対して繰り返します。
...文字列の各文字に対して繰り返します。
たとえば、
//emlist[][ruby]{
"hello世界".each_char {|c| print c, ' ' }
//}
は次のように出力されます。
h e l l o 世 界
@see String#chars... -
String
# each _ char {|cstr| block } -> self (21013.0) -
文字列の各文字に対して繰り返します。
...文字列の各文字に対して繰り返します。
たとえば、
//emlist[][ruby]{
"hello世界".each_char {|c| print c, ' ' }
//}
は次のように出力されます。
h e l l o 世 界
@see String#chars... -
CGI
# print(*strings) (18220.0) -
@todo
...@todo
引数の文字列を標準出力に出力します。
cgi.print は $DEFAULT_OUTPUT.print と等価です。
例:
cgi = CGI.new
cgi.print "This line is a part of content body.\r\n"... -
Net
:: Telnet # print(string) -> () (18209.0) -
ホストに文字列を送ります。
...プされます。
これらの変換はNet::Telnet#telnetmode, Net::Telnet#binmode,
およびホストから設定された telnet オプションによって(変換するしないなどが)
制御されます。
@param string ホストに送る文字列
@see Net::Telnet#write, Net::Telnet#puts... -
StringIO
# printf(format , *obj) -> nil (9107.0) -
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
...書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.printf("%c%c%c", 97, 98, 99)
a.string #=> "abc"
//}... -
Object
# pretty _ print _ inspect -> String (6231.0) -
Object#pretty_print を使って Object#inspect と同様に オブジェクトを人間が読める形式に変換した文字列を返します。
...Object#pretty_print を使って Object#inspect と同様に
オブジェクトを人間が読める形式に変換した文字列を返します。
出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。
そうでない場合には RuntimeEr......ror が発生します。
@raise RuntimeError 出力する全てのオブジェクトに Object#pretty_print が定義されて
いない場合に発生します。... -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (6203.0) -
依存関係を表す文字列を返します。
依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。 -
Gem
:: Requirement # pretty _ print(pp) -> String (6203.0) -
わかりやすい形で、条件を表す文字列を返します。 pp メソッドで出力する際に、内部で用いられます。
わかりやすい形で、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
require 'pp'
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requirement.new(["< 5.0", ">= 1.9"])
//}わかりやすい形で、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requirement.new(["< 5.0", ">= 1.9"])
//}