種類
ライブラリ
- English (48)
- ビルトイン (1220)
-
cgi
/ core (24) -
cgi
/ util (60) - csv (156)
- erb (24)
- forwardable (12)
- gdbm (24)
-
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)
- observer (12)
- open3 (36)
- openssl (132)
- pp (84)
- prettyprint (205)
- profiler (12)
- rbconfig (12)
-
rdoc
/ stats (12) - readline (36)
-
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 (48)
- tempfile (60)
- thread (4)
- timeout (21)
- uri (24)
-
webrick
/ httpresponse (60) - zlib (120)
クラス
-
ARGF
. class (72) - Addrinfo (24)
- Array (84)
- CGI (84)
- CSV (132)
-
CSV
:: Table (24) - ERB (24)
- File (36)
-
File
:: Stat (24) - GDBM (24)
-
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Requirement (12) - IO (336)
-
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 (36)
- 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 (60) -
Zlib
:: GzipWriter (48)
モジュール
- Enumerable (60)
- IRB (12)
- Kernel (420)
- Open3 (24)
-
OpenSSL
:: ASN1 (36) -
OpenSSL
:: Buffering (36) -
Profiler
_ _ (6) - RbConfig (12)
- Readline (24)
- Syslog (48)
- 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)
- <=> (12)
- ConditionVariable (12)
- DATA (12)
- Forwardable (12)
- GzipReader (12)
- HTTPRequest (12)
- ISPRINT (12)
- Interrupt (12)
-
MAKEFILE
_ CONFIG (12) - Monitor (12)
- MonitorMixin (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - NKF (12)
-
NOPRINTING
_ IVARS (12) - Observable (12)
- Open3 (12)
- PRINTABLESTRING (12)
- PrettyPrint (12)
- PrintableString (36)
-
Profiler
_ _ (6) - Readline (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Rubyの起動 (12)
- SSLSocket (12)
- SizedQueue (12)
- TCPServer (12)
- TCPSocket (12)
- Telnet (2)
- Transitive (12)
- [] (24)
-
add
_ row (12) - 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 (48)
-
def
_ class (12) -
def
_ module (12) - delete (12)
- downto (24)
- each (48)
-
each
_ char (48) -
each
_ codepoint (24) -
each
_ entry (24) -
error
_ print (12) - escapeHTML (12)
-
escape
_ html (12) - fail (36)
- fdatasync (12)
- fetch (36)
- first? (1)
- flush (24)
-
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) - irb (12)
- length (12)
- loop (24)
- mail (36)
- mask (12)
- mask= (12)
- maxwidth (12)
- nest (12)
-
net
/ http (12) - new (76)
- newline (12)
- open (132)
- open! (12)
- openssl (12)
- output (12)
- p (12)
- pop (36)
- popen (168)
- popen3 (24)
- pos (12)
- post2 (24)
- pp (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 (36)
- rake (12)
-
rb
_ ary _ to _ s (12) -
rb
_ parser _ append _ print (12) -
rb
_ parser _ while _ loop (12) - readline (12)
- ready (12)
- reopen (48)
-
request
_ get (24) -
request
_ post (24) -
return
_ format (12) -
return
_ format= (12) -
reverse
_ each (24) - rss (12)
-
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) - shell (6)
-
singleline
_ format (12) - size (12)
- size? (12)
- source (12)
- sprintf (12)
- sprintf フォーマット (12)
- stop (12)
- sync= (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 (24)
- write (2)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス/メソッドの定義 (12)
- プログラム・文・式 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 正規表現 (12)
検索結果
先頭5件
-
Object
# pretty _ print _ inspect -> String (6129.0) -
Object#pretty_print を使って Object#inspect と同様に オブジェクトを人間が読める形式に変換した文字列を返します。
...Object#pretty_print を使って Object#inspect と同様に
オブジェクトを人間が読める形式に変換した文字列を返します。
出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。
そうでない場合には RuntimeEr......ror が発生します。
@raise RuntimeError 出力する全てのオブジェクトに Object#pretty_print が定義されて
いない場合に発生します。... -
Object
# pretty _ print(pp) -> () (6125.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...します。
そのとき pretty_print メソッドは指定された pp に対して表示したい自身の内容を追加して
いかなければいけません。いくつかの組み込みクラスについて、
pp ライブラリはあらかじめ pretty_print メソッドを定義してい......ブジェクトです。
//emlist[][ruby]{
require 'pp'
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable......@param pp PP オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable... -
void rb
_ parser _ append _ print(void) (6116.0) -
ruby の -p オプションの実装。 ループと print のノードを ruby_eval_tree に加えます。
...ruby の -p オプションの実装。
ループと print のノードを ruby_eval_tree に加えます。... -
Net
:: HTTP . get _ print(host , path , port = 80) -> () (6114.0) -
指定した対象から HTTP でエンティティボディを取得し、 $stdout に出力します。
...ートを整数で指定します。
@see Net::HTTP.get
=== 例
//emlist[][ruby]{
require 'net/http'
require 'uri'
Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
//}
もしくは
//emlist[][ruby]{
require 'net/http'
Net::HTTP.get_print 'www.example.com', '/index.html'
//}... -
Net
:: HTTP . get _ print(uri) -> () (6114.0) -
指定した対象から HTTP でエンティティボディを取得し、 $stdout に出力します。
...ートを整数で指定します。
@see Net::HTTP.get
=== 例
//emlist[][ruby]{
require 'net/http'
require 'uri'
Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
//}
もしくは
//emlist[][ruby]{
require 'net/http'
Net::HTTP.get_print 'www.example.com', '/index.html'
//}... -
IO
# printf(format , *arg) -> nil (6106.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、self に出力します。
...の printf と同じように、format に従い引数
を文字列に変換して、self に出力します。
第一引数に IO を指定できないこと、引数を省略できないことを除けば Kernel.#printf と同じです。
@param format Kernel.#printf と同じです。print_form......at を参照してください。
@param arg Kernel.#printf と同じです。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
@see Kernel.#printf... -
Zlib
:: GzipWriter # printf(format , *args) -> nil (6106.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、自身に出力します。
...C 言語の printf と同じように、format に従い引数
を文字列に変換して、自身に出力します。
@param format フォーマット文字列を指定します。print_format を参照してください。
@param args フォーマットされるオブジェクトを指定し......。
require 'zlib'
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.printf("\n%9s", "bar")
}
fr = File.open(filename)
Zlib::GzipReader.wrap(fr){|gz|
puts gz.read
}
#=> bar
@see IO#printf, Kernel.#printf... -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (6101.0) -
依存関係を表す文字列を返します。
依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。 -
Gem
:: Requirement # pretty _ print(pp) -> String (6101.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"])
//}