るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

Rinda::Template (18103.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...

Rinda::DRbObjectTemplate (6001.0)

ERB (13.0)

eRuby スクリプトを処理するクラス。

...よって生
成される文字列のエンコーディングを指定することができます。

# -*- coding: UTF-8 -*-
require 'erb'

template
= ERB.new <<EOF
<%#-*- coding: Big5 -*-%>
__ENCODING__ is <%= __ENCODING__ %>.
EOF
puts template.result # => __ENCODING__ is Big5...