るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

検索結果

<< 1 2 3 ... > >>

ERB.new(str, safe_level=NOT_GIVEN, trim_mode=NOT_GIVEN, eoutvar=NOT_GIVEN, trim_mode: nil, eoutvar: &#39;_erbout&#39;) -> ERB (26106.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...eRubyスクリプト から ERB オブジェクトを生成して返します。

@param str eRubyスクリプトを表す文字列
@param safe_level eRubyスクリプトが実行されるときのセーフレベル
@param trim_mode 整形の挙動を変更するオプション

@param eoutvar eRuby...
...eRuby スクリプトの中でさらに ERB を使うときに変更
します。通常は指定する必要はありません。

Ruby 2.6.0 から位置引数での safe_level, trim_mode, eoutvar の指定は非推奨です。
Ruby 3.2 で削除されました。
trim_mode eoutv...
...en Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader :product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
e
nd

def build
b = binding
# create and run template...

ERB.new(str, safe_level=nil, trim_mode=nil, eoutvar=&#39;_erbout&#39;) -> ERB (26106.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...eRubyスクリプト から ERB オブジェクトを生成して返します。

@param str eRubyスクリプトを表す文字列
@param safe_level eRubyスクリプトが実行されるときのセーフレベル
@param trim_mode 整形の挙動を変更するオプション

@param eoutvar eRuby...
...eRuby スクリプトの中でさらに ERB を使うときに変更
します。通常は指定する必要はありません。

Ruby 2.6.0 から位置引数での safe_level, trim_mode, eoutvar の指定は非推奨です。
Ruby 3.2 で削除されました。
trim_mode eoutv...
...en Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader :product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
e
nd

def build
b = binding
# create and run template...

ERB.new(str, trim_mode: nil, eoutvar: &#39;_erbout&#39;) -> ERB (26106.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...eRubyスクリプト から ERB オブジェクトを生成して返します。

@param str eRubyスクリプトを表す文字列
@param trim_mode 整形の挙動を変更するオプション

@param eoutvar eRubyスクリプトの中で出力をためていく変数の名前を表す文...
...eRuby スクリプトの中でさらに ERB を使うときに変更
します。通常は指定する必要はありません。


//emlist[例][ruby]{
require "erb"

# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messag...
...es pattie, breaded and fried.",
:cost => 9.95 }

attr_reader :product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
e
nd

def build
b = binding
# create and run templates, filling member data variables
E
RB.new(<<~'END_P...

ERB (26012.0)

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

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

従来 ERbLight と呼ばれていたもので、
標準出力への印字が文字列の挿入とならない点が eruby と異なります。

* https://magazine.rubyist.net/articles/0017/0017-BundledLibraries.html


=== 使い方

E
RB クラス...
...ためには require 'erb' する必要があります。

例:

require 'erb'

E
RB.new($<.read).run

=== trim_mode

trim_mode は整形の挙動を変更するオプションです。次の振舞いを指定できます。
* 改行の扱い
* %ではじまる行の扱い (ERB 2.0 から追...
...と、ERB によって生
成される文字列のエンコーディングを指定することができます。

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

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

Rinda::Template (24102.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...
...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
.m...
...atch({'name' => 'seki', 'age' => 0x20}) # => true
template
.match({'name' => :seki, 'age' => 0x20}) # => false...

絞り込み条件を変える

Gem::Server::DOC_TEMPLATE -> String (15201.0)

ドキュメントのテンプレートを表す文字列です。

ドキュメントのテンプレートを表す文字列です。

Rake::RDocTask#template=(template) (12408.0)

使用するテンプレートをセットします。

...使用するテンプレートをセットします。

@param template 使用するテンプレートを指定します。...

RDoc::Options#template -> String (12217.0)

コマンドライン引数の --template オプションで指定した名前を文字列の配列 で返します。

...コマンドライン引数の --template オプションで指定した名前を文字列の配列
で返します。

指定しなかった場合は 'html' を返します。...

RDoc::Options#template_dir -> String | nil (12217.0)

コマンドライン引数の --template オプションで指定したテンプレートに対応 するディレクトリを返します。

...コマンドライン引数の --template オプションで指定したテンプレートに対応
するディレクトリを返します。

オプションの解析前は nil を返します。...

RDoc::Options#template_dir=(val) (12217.0)

コマンドライン引数の --template オプションで指定したテンプレートに対応 するディレクトリを設定します。

...コマンドライン引数の --template オプションで指定したテンプレートに対応
するディレクトリを設定します。

@param val パスを文字列で指定します。...

絞り込み条件を変える

OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE -> { String => Integer } (12201.0)

属性型に対応する ASN.1の型を格納したハッシュです。

...す。

OpenSSL::X509::Name.parse や OpenSSL::X509::Name.new
などでデフォルト値として使われます。

キーは属性型文字列で、ASN.1の型を表わす整数が対応します。

以下の文字列がキーです。
'C', 'countryName', 'serialNumber', 'dnQualifier',
'DC'...
..., 'domainComponent', 'emailAddress'...

Rake::RDocTask#template -> String (12201.0)

使用するテンプレートを返します。 デフォルトは RDoc のデフォルトです。

使用するテンプレートを返します。
デフォルトは RDoc のデフォルトです。
<< 1 2 3 ... > >>