るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.090秒)
トップページ > クエリ:l[x] > クエリ:FALSE[x] > クエリ:Template[x]

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. l matrix

ライブラリ

クラス

検索結果

Rinda::Template (24120.0)

タプルのマッチングのためのクラスです。 ユーザがこのクラスを直接使うことはありません。

...da'

template
= Rinda::Template.new(['abc', nil, nil])
template
.match(['abc', 2, 5]) # => true
template
.match(['hoge', 2, 5]) # => false

template
= Rinda::Template.new([String, Integer, nil])
template
.match(['abc', 2, 5]) # => true
template
.match(['abcd', 2, 5]) # => true

template
=...
...Rinda::Template.new([/^abc/, Integer, nil])
template
.match([/^abc/, Integer, nil]) # => true
template
.match(['abc', 2, 5]) # => true
template
.match(['def', 2, 5]) # => false

template
= Rinda::Template.new({'name' => String, 'age' => Integer})
template
.match({'name' => 's...
...eki', 'age' => 0x20}) # => true
template
.match({'name' => :seki, 'age' => 0x20}) # => false...

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

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

...きることをいいます。

Windows での Process.fork や GNU/Linux での File.lchmod の
ような NotImplementedError が発生する場合は false を返します。

※ NotImplementedError が発生する場合に false を返すのは
Rubyの組み込みライブラリや標準ライ...
...NotImplementedError が発生する場合は true を返します。

メソッドが定義されていない場合は、Object#respond_to_missing? を呼
び出してその結果を返します。

@param name Symbol または文字列で指定するメソッド名です。

@param include_all priv...
...hello
"Bonjour"
end
end

class D
private
def hello
"Guten Tag"
end
end
l
ist = [F.new,D.new]

l
ist.each{|it| puts it.hello if it.respond_to?(:hello)}
#=> Bonjour

l
ist.each{|it| it.instance_eval("puts hello if it.respond_to?(:hello, true)")}
#=> Bonjour
# Guten Tag

module Template...