るりまサーチ

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

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d=
  4. rsa d
  5. kernel $-d

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

Psych::Handler#end_mapping -> () (12201.0)

mapping の終了の見付けたときに呼び出されます。

...mapping の終了の見付けたときに呼び出されます。

必要に応じてこのメソッドを override してください。...

REXML::SAX2Listener#end_prefix_mapping(prefix) -> () (12201.0)

名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。

名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。

@param prefix 接頭辞の文字列が渡されます

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (12201.0)

与えられたタスク名を追加して新しい Rake::InvocationChain を返します。

...た場合に発生します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}...

Rake::InvocationChain::EmptyInvocationChain#append(task_name) -> Rake::InvocationChain (12201.0)

与えられた値を追加した Rake::InvocationChain を返します。

与えられた値を追加した Rake::InvocationChain を返します。

@param task_name 追加する値を指定します。

String#append_as_bytes(*objects) -> self (12201.0)

引数で与えたオブジェクトをバイト列として、self に破壊的に連結します。

...# => "\xE3\x81\x82"
s.encoding # => #<Encoding:BINARY (ASCII-8BIT)>
s.append_as_bytes("い") # => "\xE3\x81\x82\xE3\x81\x84"

# s << "い" では連結できない
s << "い" # => "incompatible character encodings: BINARY (ASCII-8BIT) and UTF-8 (Encoding::CompatibilityError)
//}...
...//emlist[引数で整数を渡す例][ruby]{
t = ""
t.append_as_bytes(0x61) # => "a"
t.append_as_bytes(0x3062) # => "ab"
//}

@see String#<<, String#concat...

絞り込み条件を変える

Exception2MessageMapper#def_exception(exception_name, message_format, superclass = StandardError) -> Class (9201.0)

exception_name という名前の例外クラスを定義します。

...ion_name 定義する例外クラスの名前をシンボルで指定します。

@param message_format メッセージのフォーマット。

@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。...

Ripper#encoding -> Encoding (9201.0)

自身の持つ Ruby プログラムの文字エンコーディングを返します。

...自身の持つ Ruby プログラムの文字エンコーディングを返します。

Ruby プログラムの解析前は Encoding::US_ASCII を返します。...

Exception2MessageMapper#bind(cl) -> () (9101.0)

@todo

...@todo

@param cl xxx...

Exception2MessageMapper#def_e2message(exception_class, message_format) -> Class (9101.0)

すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。

...エラーメッセージ用フォーマット message_format を関連づけます。

このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。

@param exception_class メッセージを登録する例外クラスを指定します。

@param mess...

IRB::OutputMethod#ppx(prefix, *objs) -> object (9101.0)

引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。

引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。

@param prefix 各 obj の先頭に追記する文字列を指定します。

@param objs 任意のオブジェクトを指定します。

絞り込み条件を変える

Psych::Handler#start_mapping(anchor, tag, implicit, style) -> () (9101.0)

mapping の開始を見付けたときに呼び出されます。

...mapping の開始を見付けたときに呼び出されます。

anchor には map に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。

tag には map に関連付けられた tag の名前が文字列で渡されます...
...Psych::Nodes::Mapping::BLOCK
* Psych::Nodes::Mapping::FLOW

必要に応じてこのメソッドを override してください。

@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit mapping が implicit に開始されかどうか
@param style mapping の...
...して考えます。

---
k: !!map { hello: world }
v: &pewpew
hello: world

この YAML ドキュメントには3つの mapping が含まれています。
外側の map の中に 2 つの map が含まれています。
start_mapping メソッドは 順に以下の引数で呼び出さ...

Rake::Application#add_loader(ext, loader) (9101.0)

与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。

...aram loader ローダーを指定します。

//emlist[例][ruby]{
require "rake/loaders/makefile"

# Rakefile での記載例とする

task default: :test
task :test

makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)
Rake.application.add_loader("mf",...
...Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}...
<< < 1 2 3 4 5 ... > >>