種類
- インスタンスメソッド (48)
- 特異メソッド (48)
- 定数 (24)
ライブラリ
-
irb
/ output-method (24) - mkmf (12)
- pp (24)
- prettyprint (24)
- rake (12)
- socket (24)
クラス
-
IRB
:: OutputMethod (24) - PP (24)
- PrettyPrint (24)
-
Rake
:: Application (12) - Socket (12)
モジュール
- Kernel (12)
-
Socket
:: Constants (12)
キーワード
-
IPPROTO
_ ROUTING (24) -
cpp
_ command (12) - format (12)
- ppx (12)
-
singleline
_ format (12) -
singleline
_ pp (12) -
tty
_ output= (12)
検索結果
先頭5件
-
PP
. pp(obj , out = $ > , width = 79) -> object (35258.0) -
指定されたオブジェクト obj を出力先 out に幅 width で出力します。 出力先 out を返します。
...指定されたオブジェクト obj を出力先 out に幅 width で出力します。
出力先 out を返します。
@param obj 表示したいオブジェクトを指定します。
@param out 出力先を指定します。<< メソッドが定義されている必要があります。
@p......aram width 出力先の幅を指定します。
//emlist[][ruby]{
require 'pp'
str = PP.pp(b], [:a, [[:a, [:a, [:a, :b], [:a, :b],]]], '', 20)
puts str
# =>
# [[:a, :b],
# [:a,
# [[:a,
# [:a, [:a, :b]]],
# [:a, :b]]]]
//}
@see $>... -
PP
. singleline _ pp(obj , out= $ >) -> object (23240.0) -
指定されたオブジェクト obj を出力先 out に出力します。 ただし、インデントも改行もしません。 出力先 out を返します。
...指定されたオブジェクト obj を出力先 out に出力します。
ただし、インデントも改行もしません。
出力先 out を返します。
@param obj 表示したいオブジェクトを指定します。
@param out 出力先を指定します。<< メソッドが定義... -
IRB
:: OutputMethod # pp(*objs) -> object (21101.0) -
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
各 obj を inspect した文字列を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。 -
Socket
:: Constants :: IPPROTO _ ROUTING -> Integer (12200.0) -
BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see 2292 -
Socket
:: IPPROTO _ ROUTING -> Integer (12200.0) -
BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see 2292 -
Rake
:: Application # tty _ output=(tty _ output _ state) (9200.0) -
TTY に対する出力状態を上書きします。
...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"
Rake.applic......ation.tty_output? # => "debug output"
end
//}... -
IRB
:: OutputMethod # ppx(prefix , *objs) -> object (9100.0) -
引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。
引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。
@param prefix 各 obj の先頭に追記する文字列を指定します。
@param objs 任意のオブジェクトを指定します。 -
Kernel
# cpp _ command(outfile , opt = "") -> String (6200.0) -
実際にプリプロセッサを実行する際に使用するコマンドを返します。
...実際にプリプロセッサを実行する際に使用するコマンドを返します。
@param outfile 出力ファイルの名前を指定します。
@param opt プリプロセッサに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand... -
PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (213.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 与えられた output を返します。
...与えられた output を返します。
以下と同じ働きをするもので簡便のために用意されています。
//emlist[][ruby]{
require 'prettyprint'
begin
pp = PrettyPrint.new(output, maxwidth, newline, &genspace)
...
pp.flush
output
end
//}
@param output 出力先を......指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 行の最大幅を指定します。ただし、改行できないものが渡された場合は、
実際の出力幅は maxwidth を越えることがあります。
@param n...