るりまサーチ

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

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_bind
  3. etc sc_2_c_dev
  4. tracer display_c_call
  5. tracer display_c_call?

検索結果

<< 1 2 > >>

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

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

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

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

Shell::CommandProcessor#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (21314.0)

@todo

@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。

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

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

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

@param task_name 追加するタスク名を指定します。

@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。

//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
//}...

Shell#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (18314.0)

@todo

@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。

Shell::Filter#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (18314.0)

@todo

@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。

絞り込み条件を変える

Net::IMAP#append(mailbox, message, flags = nil, date_time = nil) -> Net::IMAP::TaggedResponse (18136.0)

APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。

...
APPEND
コマンドを送ってメッセージをメールボックスの末尾に追加します。


例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com

hello world
EOF

@param mailbox メッセー...

WEBrick::HTTPUtils::FormData#append_data(data) -> self (9102.0)

WEBrick::HTTPUtils の内部で使われます。ユーザがこのメソッドを直接呼ぶことはありません。

...WEBrick::HTTPUtils の内部で使われます。ユーザがこのメソッドを直接呼ぶことはありません。...

Module#append_features(module_or_class) -> self (6220.0)

モジュール(あるいはクラス)に self の機能を追加します。

...は Module#include の実体であり、
include を Ruby で書くと以下のように定義できます。

//emlist[例][ruby]{
def include(*modules)
modules.reverse_each do |mod|
# append_features や included はプライベートメソッドなので
# 直接 mod.append_features(sel...
...f) などとは書けない
mod.__send__(:append_features, self)
mod.__send__(:included, self)
end
end
//}

@see Module#included...

Module#included(class_or_module) -> () (6207.0)

self が Module#include されたときに対象のクラスまたはモジュー ルを引数にしてインタプリタがこのメソッドを呼び出します。

...include されたときに対象のクラスまたはモジュー
ルを引数にしてインタプリタがこのメソッドを呼び出します。

@param class_or_module Module#include を実行したオブジェクト

//emlist[例][ruby]{
module Foo
def self.included(mod)
p "#{mod} incl...
...ude #{self}"
end
end
c
lass Bar
include Foo
end
# => "Bar include Foo"
//}

@see Module#append_features...

Module#include(*mod) -> self (6173.0)

モジュール mod をインクルードします。

...してしまうような include を行った場合に発生します。

//emlist[例][ruby]{
module M
end
module M2
include M
end
module M
include M2
end
//}

実行結果:

-:3:in `append_features': cyclic include detected (ArgumentError)
from -:3:in `include'
from -:3...
...多重継承の代わりに用いられており、 mix-in とも呼びます。

//emlist[例][ruby]{
c
lass C
include FileTest
include Math
end

p C.ancestors

# => [C, Math, FileTest, Object, Kernel]
//}

モジュールの機能追加は、クラスの継承関係の間にそのモジュー...
...le#ancestors の結果がメソッド探索の順序です)。

同じモジュールを二回以上 include すると二回目以降は無視されます。

//emlist[例][ruby]{
module M
end
c
lass C1
include M
end
c
lass C2 < C1
include M # この include は無視される
end

p C2.ancestor...

絞り込み条件を変える

<< 1 2 > >>