1133件ヒット
[1-100件を表示]
(0.064秒)
ライブラリ
- English (48)
- ビルトイン (228)
-
cgi
/ core (12) -
cgi
/ session (12) - csv (60)
-
irb
/ context (12) -
irb
/ output-method (96) -
minitest
/ unit (1) -
net
/ http (12) -
net
/ pop (12) -
net
/ smtp (24) -
net
/ telnet (4) - prettyprint (60)
- psych (12)
- rake (48)
- readline (12)
-
rexml
/ document (132) - rss (24)
-
rubygems
/ package / tar _ output (84) - shell (33)
-
shell
/ process-controller (6) - socket (12)
- win32ole (36)
クラス
- CGI (12)
-
CGI
:: Session (12) - CSV (48)
-
Encoding
:: Converter (60) -
Gem
:: Package :: TarOutput (72) - IO (168)
-
IRB
:: Context (12) -
IRB
:: OutputMethod (60) -
IRB
:: StdioOutputMethod (12) -
MiniTest
:: Unit (1) -
Net
:: HTTP (12) -
Net
:: POP3 (12) -
Net
:: SMTP (24) -
Net
:: Telnet (4) - PrettyPrint (60)
-
RDoc
:: Options (24) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: NotationDecl (12) -
Rake
:: Application (24) - Shell (33)
-
Shell
:: ProcessController (6) - UNIXSocket (12)
-
WIN32OLE
_ PARAM (36)
モジュール
- Kernel (48)
-
RSS
:: RootElementMixin (24) - Rake (24)
- Readline (12)
キーワード
-
$ DEFAULT _ OUTPUT (12) -
$ OFS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) - CSV (12)
- Emitter (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - OutputMethod (12)
- Pretty (12)
- StdioOutputMethod (12)
- TarOutput (12)
-
add
_ gem _ contents (12) -
add
_ signatures (12) - application (12)
- application= (12)
-
block
_ output _ synchronize (6) - close (12)
-
debug
_ output= (12) -
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ synchronize (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) - filter (36)
-
force
_ output (12) -
force
_ output= (12) - format (12)
- getoptlong (12)
- input? (12)
-
insert
_ output (12) -
irb
/ output-method (12) - new (76)
- open (12)
- output (12)
- output= (13)
- output? (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - popen (168)
- pp (12)
- ppx (12)
- prettyprint (12)
-
primitive
_ convert (48) - print (36)
- printn (12)
- puts (12)
- rdoc (12)
-
rdoc
/ markup (12) - retval? (12)
-
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ package / tar _ output (12) -
rubygems
/ security (12) -
send
_ io (12) -
set
_ debug _ output (36) -
singleline
_ format (12) -
tty
_ output= (12) - write (108)
検索結果
先頭5件
-
prettyprint (32078.0)
-
pretty printing アルゴリズムのためのライブラリです。
...pretty printing アルゴリズムのためのライブラリです。
=== 使い方
pretty printing アルゴリズムは読みやすいインデントと改行を決定するためのアルゴリズムです。
インデントと改行はユーザによって与えられたツリー構造から......作成する必要があります。
* PrettyPrint.new でバッファを生成します。このとき、バッファの幅と改行文字を指定します。
* PrettyPrint#text を使って、文字列を適宜 挿入します。
* PrettyPrint#group を使って子ノードをつくります......します。
//emlist[][ruby]{
require 'prettyprint'
p2 = PrettyPrint.new('', 10)
s = 'hello'
p2.text(s)
p2.group(p2.indent + s.size + 1) do
p2.breakable
p2.text('a')
p2.breakable
p2.text('b')
p2.breakable
p2.text('c')
end
p2.flush
puts p2.output
#=>
# hello
# a
# b
#... -
REXML
:: Output (24000.0) -
出力先を wrap するクラスです。 内部用なのでユーザは使わないでください。
...出力先を wrap するクラスです。
内部用なのでユーザは使わないでください。... -
PrettyPrint
# output -> object (15217.0) -
自身の output を返します。
...自身の output を返します。... -
Rake
:: Application # tty _ output=(tty _ output _ state) (12444.0) -
TTY に対する出力状態を上書きします。
...@param tty_output_state 変更後の状態を指定します
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tty_output? # => false
Rake.application.tty_output = "debug output" # => "debug output"
Ra......ke.application.tty_output? # => "debug output"
end
//}... -
Readline
. output=(output) (12440.0) -
readline メソッドで使用する出力用の File オブジェクト output を指定します。 戻り値は指定した File オブジェクト output です。
...readline メソッドで使用する出力用の File オブジェクト output を指定します。
戻り値は指定した File オブジェクト output です。
@param output File オブジェクトを指定します。... -
Encoding
:: Converter # insert _ output(string) -> nil (12243.0) -
変換器内のバッファに文字列を挿入します。 バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
...されるべきです。
@param string 挿入する文字列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
src = "HIRAGANA LETTER A is \u{3042}."
dst = ""
p ec.primitive_convert(src, dst) #=> :undefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER......t_output("<err>")
p ec.primitive_convert(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER A is <err>.", ""]
ec = Encoding::Converter.new("utf-8", "iso-2022-jp")
src = "\u{306F 3041 3068 2661 3002}" # U+2661 is not representable in iso-2022-jp
dst = ""
p ec.primit......ndefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$!$H".force_encoding("ISO-2022-JP"), "\xE3\ x80\x82"]
ec.insert_output "?" # state change required to output "?".
p ec.primitive_convert(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$... -
Kernel
$ $ DEFAULT _ OUTPUT -> IO (12237.0) -
$> の別名
...$> の別名
require "English"
dout = $DEFAULT_OUTPUT.dup
$DEFAULT_OUTPUT.reopen("out.txt", "w")
print "foo"
$DEFAULT_OUTPUT.close
$DEFAULT_OUTPUT = dout
p "bar" # => bar
p File.read("out.txt") #=> foo... -
RDoc
:: Options # force _ output -> bool (12233.0) -
コマンドライン引数の --force_output オプションを指定していた場合、true を返します。--no-force_output オプションを指定していた場合、false を返 します。
...コマンドライン引数の --force_output オプションを指定していた場合、true
を返します。--no-force_output オプションを指定していた場合、false を返
します。
どちらも指定しなかった場合は true を返します。... -
RDoc
:: Options # force _ output=(val) (12223.0) -
val に true を指定した場合、コマンドライン引数の --force_output オプショ ンと同様の指定を行います。
...val に true を指定した場合、コマンドライン引数の --force_output オプショ
ンと同様の指定を行います。
@param val --force_output オプションと同じ指定を行う場合は true、そうで
ない場合は false を指定します。...