るりまサーチ

最速Rubyリファレンスマニュアル検索!
177件ヒット [101-177件を表示] (0.013秒)
トップページ > クエリ:Template[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. options template
  2. rdoctask template
  3. rdoctask template=
  4. server doc_template
  5. options template_dir

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 >>

String#unpack(template) -> Array (124.0)

Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。

...Array#pack で生成された文字列を
テンプレート文字列 template にしたがってアンパックし、
それらの要素を含む配列を返します。

@param template pack テンプレート文字列
@return オブジェクトの配列


以下にあげるもの...

Socket::Option#unpack(template) -> Array (102.0)

data に対し String#unpack を呼び出し、その結果を返します。

data に対し String#unpack を呼び出し、その結果を返します。

このメソッドは過去との互換性のために存在します。

Rinda::TupleSpace#notify(event, pattern, sec = nil) -> Rinda::NotifyTemplateEntry (101.0)

event で指定した種類のイベントの監視を開始します。

...した場合にのみ報告されます。

イベントが生じた場合、
このメソッドの返り値の Rinda::NotifyTemplateEntry を経由し、
Rinda::NotifyTemplateEntry#each を用いて報告を受け取ります。

sec で監視期間を秒数で指定できます。 nil で無限に...

Rinda::TupleSpaceProxy#notify(ev, tuple, sec = nil) -> Rinda::NotifyTemplateEntry (101.0)

event で指定した種類のイベントの監視を開始します。

event で指定した種類のイベントの監視を開始します。

内部的にはリモートオブジェクトの Rinda::TupleSpace#notify にフォワードされます。
詳細は Rinda::TupleSpace#notify 参照してください

@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)

Object#respond_to?(name, include_all = false) -> bool (61.0)

オブジェクトがメソッド name を持つとき真を返します。

...e Template
def main
start
template
_method
finish
end

def start
puts "start"
end

def template_method
raise NotImplementedError.new
end

def finish
puts "finish"
end
end

class ImplTemplateMethod
include Template
def template_method
"implement template...
...tImplTemplateMethod
include Template

# not implement template_method
end

puts ImplTemplateMethod.new.respond_to?(:template_method) # => true
# NotImplementedError が発生しているが、Rubyによる実装部のため true を返す
puts NotImplTemplateMethod.new.respond_to?(:template_meth...

絞り込み条件を変える

Kernel#file(*args) { ... } -> Rake::FileTask (13.0)

ファイルタスクを定義します。

...am args ファイル名と依存ファイル名を指定します。

例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end
e...

OpenSSL::X509::Name#add_entry(oid, value, type = nil) (7.0)

新しい属性を追加します。

...を追加します。

@param oid 属性型文字列
@param value 属性値文字列
@param type 属性値の(ASN.1の)型、省略時は OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE と oid から型が決まる
@raise OpenSSL::X509::NameError 属性の追加に失敗した場合に発生します...
<< < 1 2 >>