273件ヒット
[201-273件を表示]
(0.066秒)
別のキーワード
種類
- インスタンスメソッド (129)
- 特異メソッド (84)
- 定数 (36)
- 文書 (12)
- ライブラリ (12)
ライブラリ
- ビルトイン (45)
- erb (12)
- openssl (96)
- rake (12)
-
rake
/ rdoctask (12) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) -
rubygems
/ server (12) - socket (12)
クラス
- Array (21)
- ERB (12)
-
Gem
:: Server (12) - Object (12)
-
OpenSSL
:: X509 :: Name (96) -
RDoc
:: Options (24) -
Rake
:: RDocTask (12) -
Rinda
:: TupleSpace (12) -
Rinda
:: TupleSpaceProxy (12) -
Socket
:: Option (12) - String (12)
モジュール
- Kernel (12)
キーワード
-
DEFAULT
_ OBJECT _ TYPE (12) -
DOC
_ TEMPLATE (12) -
OBJECT
_ TYPE _ TEMPLATE (12) - file (12)
- new (48)
- notify (24)
- pack (21)
- pack テンプレート文字列 (12)
- parse (12)
-
parse
_ openssl (12) -
parse
_ rfc2253 (12) - rdoc (12)
-
respond
_ to? (12) -
template
_ dir (12) - unpack (24)
検索結果
先頭5件
-
rdoc (168.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...が
処理されます。
===[a:usage] 使いかた
RDoc はコマンドラインから以下のようにして起動します。
$ rdoc <options> [name...]
ファイルをパースし、そこに含まれている情報を集め、出力します。こうして
全ファイルに渡るクロ......します。デフォルトでは --ri を指定すると
~/.rdoc に出力されますが、--ri-site で $datadir/ri/<ver>/site
に、--ri-system で $datadir/ri/<ver>/system に出力されます。これらす
べてはうしろに指定した --op を上書きします。デフォルト......ではなく)外部スタイルシートの URL を指定する。
: --tab-width n
タブの幅を指定する(デフォルトは 8)。
: --template name
出力生成時に使うテンプレートを指定する(デフォルトは 'html')。実際には
これで $: の中のディレク... -
Object
# respond _ to?(name , include _ all = false) -> bool (160.0) -
オブジェクトがメソッド name を持つとき真を返します。
...if it.respond_to?(:hello)}
#=> Bonjour
list.each{|it| it.instance_eval("puts hello if it.respond_to?(:hello, true)")}
#=> Bonjour
# Guten Tag
module Template
def main
start
template_method
finish
end
def start
puts "start"
end
def template_method
raise NotImplemen......ish"
end
end
class ImplTemplateMethod
include Template
def template_method
"implement template_method"
end
end
class NotImplTemplateMethod
include Template
# not implement template_method
end
puts ImplTemplateMethod.new.respond_to?(:template_method) # => true
# NotImplementedErro......生しているが、Rubyによる実装部のため true を返す
puts NotImplTemplateMethod.new.respond_to?(:template_method) # => true
# GNU/Linux で実行。C言語による実装部のため false を返す
puts File.respond_to?(:lchmod) # => false
//}
@see Module#method_defined?... -
OpenSSL
:: X509 :: Name . new -> OpenSSL :: X509 :: Name (114.0) -
OpenSSL::X509::Name オブジェクトを生成します。
...と属性値の文字列のペアであると仮定して、オブジェクトを生成します。
この場合値のデータ型(ASN.1の型)は template で与えたハッシュによって定まります。
obj が OpenSSL::X509::Name である場合には内容を複製した
オブジェク.......jp"]])
# => OpenSSL::X509::Name object: /C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp
@param ary 属性型と属性値のペアの配列
@param obj 識別子オブジェクトを生成するための情報
@param template objに配列... -
OpenSSL
:: X509 :: Name . new(obj) -> OpenSSL :: X509 :: Name (114.0) -
OpenSSL::X509::Name オブジェクトを生成します。
...と属性値の文字列のペアであると仮定して、オブジェクトを生成します。
この場合値のデータ型(ASN.1の型)は template で与えたハッシュによって定まります。
obj が OpenSSL::X509::Name である場合には内容を複製した
オブジェク.......jp"]])
# => OpenSSL::X509::Name object: /C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp
@param ary 属性型と属性値のペアの配列
@param obj 識別子オブジェクトを生成するための情報
@param template objに配列... -
Kernel
# file(*args) { . . . } -> Rake :: FileTask (112.0) -
ファイルタスクを定義します。
...@param args ファイル名と依存ファイル名を指定します。
例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end... -
ERB
. new(str , safe _ level=NOT _ GIVEN , trim _ mode=NOT _ GIVEN , eoutvar=NOT _ GIVEN , trim _ mode: nil , eoutvar: & # 39; _ erbout& # 39;) -> ERB (106.0) -
eRubyスクリプト から ERB オブジェクトを生成して返します。
...//emlist[例][ruby]{
require "erb"
# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }
attr_reader :product, :price
def initialize( product = "", price = "" )
@p......").result b
<%= PRODUCT[:name] %>
<%= PRODUCT[:desc] %>
END_PRODUCT
ERB.new(<<~'END_PRICE', eoutvar: "@price").result b
<%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<%= PRODUCT[:desc] %>
END_PRICE
end
end
# setup template data
listings = Listings.new
listings... -
ERB
. new(str , safe _ level=nil , trim _ mode=nil , eoutvar=& # 39; _ erbout& # 39;) -> ERB (106.0) -
eRubyスクリプト から ERB オブジェクトを生成して返します。
...//emlist[例][ruby]{
require "erb"
# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }
attr_reader :product, :price
def initialize( product = "", price = "" )
@p......lt b
<%= PRODUCT[:name] %>
<%= PRODUCT[:desc] %>
END_PRODUCT
ERB.new(<<-'END_PRICE'.gsub(/^\s+/, ""), 0, "", "@price").result b
<%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<%= PRODUCT[:desc] %>
END_PRICE
end
end
# setup template data
listings = Listings.new... -
ERB
. new(str , trim _ mode: nil , eoutvar: & # 39; _ erbout& # 39;) -> ERB (106.0) -
eRubyスクリプト から ERB オブジェクトを生成して返します。
...//emlist[例][ruby]{
require "erb"
# build data class
class Listings
PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }
attr_reader :product, :price
def initialize( product = "", price = "" )
@p......").result b
<%= PRODUCT[:name] %>
<%= PRODUCT[:desc] %>
END_PRODUCT
ERB.new(<<~'END_PRICE', eoutvar: "@price").result b
<%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<%= PRODUCT[:desc] %>
END_PRICE
end
end
# setup template data
listings = Listings.new
listings... -
OpenSSL
:: X509 :: Name :: DEFAULT _ OBJECT _ TYPE -> Integer (106.0) -
属性値のデフォルトの ASN.1 の型です。
...属性値のデフォルトの ASN.1 の型です。
OpenSSL::X509::Name.parse や OpenSSL::X509::Name.new で
template に指定されなかった属性はこの型であると仮定して処理されます。
OpenSSL::ASN1::UTF8STRING を返します。...