るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

モジュール

検索結果

<< 1 2 > >>

Benchmark::FORMAT -> String (18219.0)

Benchmark.#benchmark の第三引数のデフォルト値。

...ルト値。

: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセ...
...ルで置き換えられます(Mnemonic: n of "*n*ame")。Benchmark::Tms#label

上記のフォーマット文字列を使用しています。
この定数の内容は以下の通りです。

//emlist[][ruby]{
"%10.6u %10.6y %10.6t %10.6r\n"
//}

@see Benchmark.#benchmark, Benchmark::Tms::FORMAT...

Benchmark::Tms::FORMAT -> String (18219.0)

Benchmark.#benchmark の第三引数のデフォルト値。

...ルト値。

: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセ...
...ベルで置き換えられます(Mnemonic: n of "*n*ame")。Benchmark::Tms#label

上記のフォーマット文字列を使用しています。
この定数の内容は以下の通りです。

//emlist[][ruby]{
"%10.6u %10.6y %10.6t %10.6r\n"
//}

@see Benchmark.#benchmark, Benchmark::FORMAT...

Benchmark::Tms#format(fmtstr = nil, *args) -> String (6225.0)

self を指定されたフォーマットで整形して返します。

...ソッドは Kernel.#format のようにオブジェクトを整形しますが、
以下の拡張を使用することができます。

: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark...
...enchmark::Tms#real
: %n
ラベルで置き換えられます(Mnemonic: n of "*n*ame")。Benchmark::Tms#label

@param fmtstr フォーマット文字列です。
省略された場合は、Benchmark::Tms::FORMAT が使用されます。
@param args フォーマットされる引数...

Marshal フォーマット (3222.0)

Marshal フォーマット フォーマットバージョン 4.8 を元に記述しています。

...

//emlist{
n == 0: 0
0 < n < 123: n + 5
-
124 < n < 0: n - 5
//}

という数値(1 byte)を格納します。5 を足したり引いたりするのは下記の
形式 2 との区別のためです。

//emlist[例][ruby]{
p Marshal.dump(-1).unpack1("x2 a*") # => "i\xFA"
p Marshal.dump(0)....
...しても dump されません。
Ruby 2.0 以降は freeze されているので、インスタンス変数は設定できません。

=== instance of the user class

==== String, Regexp, Array, Hash のサブクラス (インスタンス変数なし)

'C' で始まるデータ構造になりま...
...==== String, Regexp, Array, Hash のサブクラス (インスタンス変数あり)

'I' で始まるデータ構造になります。
d:marshal_format#instance_variableも参照してください。

//emlist[例 2: インスタンス変数あり][ruby]{
class Foo < Array # (or String, Regexp, Ha...

ruby 1.8.4 feature (1548.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたクラス/メソッドなど(互換...
...20:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * eval.c (rb_call_super): should call method_missing if super is
# called from Kernel method.
#
# * eval.c (exec_under): frame during eval should preserve external
# information.

: super [bug]

Kernelのメソ...
...7483647 です。
# -e:1:in `printf': width too big (ArgumentError)

: Hash [bug]

#Wed Nov 23 03:40:49 2005 Guy Decoux <ts@moulon.inra.fr>
#
# * re.c (KR_REHASH): should cast to unsigned for 64bit CPU.
# [ruby-core:06721]

sizeof(long) > sizeof(int) な環境で、ハッ...

絞り込み条件を変える

Time#strftime(format) -> String (505.0)

時刻を format 文字列に従って文字列に変換した結果を返します。

...時刻を format 文字列に従って文字列に変換した結果を返します。

@param format フォーマット文字列を指定します。使用できるものは 以下の通りです。

* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月...
...-31)
* %e: 日。一桁の場合、半角空白で埋める ( 1..31)
* %F: %Y-%m-%d と同等 (ISO 8601の日付フォーマット)
* %G: ISO 8601の暦週の年
* %g: ISO 8601の暦週の年の下2桁(00-99)
* %H: 24時間制の時(00-23)
* %h: %b と同等
* %I: 12時間制の時(01-...
...Date and time of day for calendar date (basic)
p t.strftime("%FT%T%:z") # => 2001-02-03T04:05:06+09:00 Date and time of day for calendar date (extended)
p t.strftime("%Y%jT%H%M%S%z") # => 2001034T040506+0900 Date and time of day for ordinal date (basic)
p t.strftime("%Y-%jT%T%:z")...

NEWS for Ruby 3.0.0 (498.0)

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

...nt behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting a single rest argument and no keywords.
16166

//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}

pr.call([1])
# 2.7 => [[1],...
...mlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}

* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern matching is redesigned. [EXPERIMENTAL]
* `=>` is added. It can be used like a rightward assignment.
17260
* `in...
...ew interface is a C-API set to exchange a raw memory area, such as a numeric array or a bitmap 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 exte...

rdoc (306.0)

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。

...れば、'rdoc' コマンドでドキュメントが生成できます。
(Windows では 'rdoc.bat' です)

$ rdoc [options] [names...]

"rdoc --help" と打てば、最新のオプションに関する情報が得られます。

$ rdoc

このコマンドでカレントディレクトリ以...
...す。標準
で有効になっています。

: --no-ignore-invalid

無効なオプションを指定した場合に、標準エラーに情報を出力して終了ステー
タス 1 でプログラムを終了します。

: --image-format gif/png/jpg/jpeg

図のフォーマットを指...
...かった場合は protected です。

: --markup markup

マークアップのフォーマットを指定します。デフォルトは rdoc です。
markdown、rd、rdoc、tomdoc のいずれかから選択できます。

: --root root

Root of the source tree documentation will be genera...

net/imap (144.0)

このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。

...て Mail/sent-mail から "Mail/sent-apr03" へ移動させる

require 'net/imap'

imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.select('Mail/sent-mail')
if not imap.list('Mail/', 'sent-apr03')
imap.create('Mail/sent-apr03')
en...
...
通信中に接続が切れると Errno::EPIPE 例外が
発生します。詳しくは Socket などを見てください。

Net::IMAP::DataFormatError、
Net::IMAP::ResponseParseError という例外クラスも
存在します。前者はデータのフォーマットが正しくない場合...
...ACCESS PROTOCOL - VERSION 4rev1",
RFC 2060, December 1996.

* [LANGUAGE-TAGS]
Alvestrand, H., "Tags for the Identification of
Languages", RFC 1766, March 1995.

* [MD5]
Myers, J., and M. Rose, "The Content-MD5 Header Field", RFC
1864, October 1995.

* [MIME-IMB]
Freed,...

Ruby用語集 (138.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...l#percent

: 0 オリジン
: zero-based
番号が 0 から始まること。

例えば、
Array や Vector、Matrix などの要素の番号、
String における文字の位置、
といったものは 0 オリジンである。

: 1 オリジン
: one-based
番号が 1 から始ま...
...り替えて使うための
ツールの一つ。Linux、macOS などで動作する。

https://github.com/rbenv/rbenv

: RD(Ruby Document format
Ruby スクリプト中に記述することを念頭に作られたドキュメントフォーマット。

: RDoc
Ruby スクリプトか...
...ラスのインスタンスという。

あるオブジェクトがあるクラスのインスタンスであるかどうかは Object#instance_of? で
確認できる。

なお、あるクラスの子孫クラスのインスタンスをも元のクラスの
インスタンスと呼ぶ場...

絞り込み条件を変える

<< 1 2 > >>