るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. ipaddr to_i

ライブラリ

検索結果

Rinda::Template (21103.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
template
.match(['abcd', 2...
...rue

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
.ma...
...tch({'name' => 'seki', 'age' => 0x20}) # => true
template
.match({'name' => :seki, 'age' => 0x20}) # => false...

Rinda::DRbObjectTemplate (9001.0)