るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.019秒)
トップページ > クエリ:nil[x] > ライブラリ:rinda/rinda[x] > 種類:クラス[x]

別のキーワード

  1. _builtin nil?
  2. object nil?
  3. nilclass nil?
  4. object nil
  5. _builtin nil

検索結果

Rinda::Template (33.0)

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

...とはありません。

=== 例

require 'rinda/rinda'

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
t...
...emplate.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' => St...