60件ヒット
[1-60件を表示]
(0.022秒)
クラス
- Object (12)
-
RDoc
:: Options (36) -
Socket
:: Option (12)
キーワード
-
respond
_ to? (12) -
template
_ dir (12) -
template
_ dir= (12) - unpack (12)
検索結果
先頭5件
-
RDoc
:: Options # template -> String (21118.0) -
コマンドライン引数の --template オプションで指定した名前を文字列の配列 で返します。
...コマンドライン引数の --template オプションで指定した名前を文字列の配列
で返します。
指定しなかった場合は 'html' を返します。... -
RDoc
:: Options # template _ dir -> String | nil (9118.0) -
コマンドライン引数の --template オプションで指定したテンプレートに対応 するディレクトリを返します。
...コマンドライン引数の --template オプションで指定したテンプレートに対応
するディレクトリを返します。
オプションの解析前は nil を返します。... -
RDoc
:: Options # template _ dir=(val) (9118.0) -
コマンドライン引数の --template オプションで指定したテンプレートに対応 するディレクトリを設定します。
...コマンドライン引数の --template オプションで指定したテンプレートに対応
するディレクトリを設定します。
@param val パスを文字列で指定します。... -
Object
# respond _ to?(name , include _ all = false) -> bool (6161.0) -
オブジェクトがメソッド name を持つとき真を返します。
...メソッドで NotImplementedError が発生する場合は true を返します。
メソッドが定義されていない場合は、Object#respond_to_missing? を呼
び出してその結果を返します。
@param name Symbol または文字列で指定するメソッド名です。
@param......"Bonjour"
end
end
class D
private
def hello
"Guten Tag"
end
end
list = [F.new,D.new]
list.each{|it| puts it.hello if it.respond_to?(:hello)}
#=> Bonjour
list.each{|it| it.instance_eval("puts hello if it.respond_to?(:hello, true)")}
#=> Bonjour
# Guten Tag
module 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_method"
end
e... -
Socket
:: Option # unpack(template) -> Array (3102.0) -
data に対し String#unpack を呼び出し、その結果を返します。
data に対し String#unpack を呼び出し、その結果を返します。
このメソッドは過去との互換性のために存在します。