るりまサーチ

最速Rubyリファレンスマニュアル検索!
42件ヒット [1-42件を表示] (0.111秒)

別のキーワード

  1. socket iff_802_1q_vlan
  2. openssl q
  3. openssl q=
  4. rsa q
  5. dsa q

ライブラリ

モジュール

キーワード

検索結果

CGI::QueryExtension#from -> String (21118.0)

ENV['HTTP_FROM'] を返します。

...ENV['HTTP_FROM'] を返します。...

Gem::StreamUI#choose_from_list(question, list) -> Array (6202.0)

リストから回答を選択する質問をします。

...リストから回答を選択する質問をします。

リストは質問の上に表示されます。

@param question 質問を指定します。

@param list 回答の選択肢を文字列の配列で指定します。

@return 選択肢の名称と選択肢のインデックスを要素と...

RubyVM::InstructionSequence#to_binary(extra_data = nil) -> String (3035.0)

バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

...たiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.lo...
...のアーキテクチャのRubyで作られたバイナリデータは使用できません。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")

# ※表示の都合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00...
...0\x00numE\x7F\x00\x00\x02\x00\x00\x00\x00
# \x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00+\xA0\x01\x00\x00\xAC\x01\x00
# \x00\xCA\x01\x00\x00\xD6\x01\x00\x00\xED\x01\x00\x00extra_data"
//}

@see RubyVM::InstructionSequence.load_from_binary
@see RubyVM::InstructionSequence.load_from_binary_extra_data...

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

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

...9桁 (ナノ秒)、%6N: マイクロ秒 (6桁)、%3N: ミリ秒 (3桁)
* %P: 午前または午後(am,pm)
* %p: 午前または午後(AM,PM)
* %Q: 1970-01-01 00:00:00 UTC からの経過ミリ秒 (Time#strftime は対応していませんが、Date#strftime で使えます)
* %R: 24時間制...
...t.strftime("%H%M%S%z") # => 040506+0900 Local time and the difference from UTC (basic)
p t.strftime("%T%:z") # => 04:05:06+09:00 Local time and the difference from UTC (extended)
p t.strftime("%Y%m%dT%H%M%S%z") # => 20010203T040506+0900 Date and tim...
...Ordinal date and UTC of day (extended)
p t.strftime("%GW%V%uT%H%M%z") # => 2001W056T0405+0900 Week date and local time and difference from UTC (basic)
p t.strftime("%G-W%V-%uT%R%:z") # => 2001-W05-6T04:05+09:00 Week date and local time and difference from UTC (extended)
//}...