るりまサーチ

最速Rubyリファレンスマニュアル検索!
29件ヒット [1-29件を表示] (0.042秒)
トップページ > クエリ:@[x] > クエリ:lambda[x] > クエリ:format[x]

別のキーワード

  1. kernel lambda
  2. _builtin lambda
  3. proc lambda?
  4. _builtin lambda?
  5. lambda proc

種類

ライブラリ

クラス

キーワード

検索結果

PrettyPrint.format(output = '', maxwidth = 79, newline = "\n", genspace = lambda{|n| ' ' * n}) {|pp| ...} -> object (18226.0)

PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 与えられた output を返します。

...= PrettyPrint.new(output, maxwidth, newline, &genspace)
...
pp.flush
output
end
//}

@
param output 出力先を指定します。output は << メソッドを持っていなければなりません。

@
param maxwidth 行の最大幅を指定します。ただし、改行できないものが...
...渡された場合は、
実際の出力幅は maxwidth を越えることがあります。

@
param newline 改行に使われます。

@
param genspace 空白の生成に使われる Proc オブジェクトを指定します。
生成したい空白の幅を表す...

PrettyPrint.singleline_format(output = &#39;&#39;, maxwidth = 79, newline = "\n", genspace = lambda{|n| &#39; &#39; * n}) {|pp| ...} -> object (6242.0)

PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。

...を実行します。
PrettyPrint.format に似ていますが、改行しません。

引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text の実行であるかのように扱います。

@
param output 出力先を指定...
...します。output は << メソッドを持っていなければなりません。

@
param maxwidth 無視されます。

@
param newline 無視されます。

@
param genspace 無視されます。...

NEWS for Ruby 3.0.0 (42.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...rue` is used. 17104
* Magic comment `shareable_constant_value` added to freeze constants.
See {Magic Comments}[rdoc-ref:doc/syntax/comments.rdoc@Magic+Comments] for more details.
17273
* A {static analysis}[rdoc-label:label-Static+analysis] foundation is
introduced.
* {RBS}[rdo...
...* Kernel#eval when called with two arguments will use `"(eval)"` for `__FILE__` and `1` for `__LINE__` in the evaluated code. 4352
* Kernel#lambda now warns if called without a literal block. 15973
* Kernel.sleep invokes the scheduler hook `#kernel_sleep(...)` in a non-blocking execution...
...image, between extension libraries. The extension libraries can share also the metadata of the memory area that consists of the shape, the element format, and so on. Using these kinds of metadata, the extension libraries can share even a multidimensional array appropriately. This feature is designe...