108件ヒット
[1-100件を表示]
(0.082秒)
ライブラリ
-
rake
/ rdoctask (12) -
rexml
/ document (48) - rss (48)
クラス
-
REXML
:: DocType (48) -
RSS
:: Maker :: XMLStyleSheets :: XMLStyleSheet (24) -
RSS
:: XMLStyleSheet (24) -
Rake
:: RDocTask (12)
キーワード
-
attribute
_ of (12) -
attributes
_ of (12) -
external
_ id (12) - title= (24)
- write (12)
検索結果
先頭5件
-
RSS
:: Maker :: XMLStyleSheets :: XMLStyleSheet # title (24103.0) -
@todo
@todo -
RSS
:: XMLStyleSheet # title (21103.0) -
@todo
@todo -
RSS
:: Maker :: XMLStyleSheets :: XMLStyleSheet # title=() (12103.0) -
@todo
@todo -
RSS
:: XMLStyleSheet # title= (9103.0) -
@todo
@todo -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (3013.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.at......tribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (3013.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.at......tributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
REXML
:: DocType # external _ id -> String | nil (3013.0) -
DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の いずれかの文字列を返します。
...サブセットを用いている場合は "SYSTEM", "PUBLIC" の
いずれかの文字列を返します。
それ以外の場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//......d">
EOS
doctype.name # => "html"
doctype.external_id # => "PUBLIC"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT books (book+)>
<!ELEMENT book (title,author)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
]>
EOS
doctype.name # => "books"
doctype.external... -
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (3007.0) -
output に DTD を出力します。
...ist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
<!ENTITY p "fooba......r publisher">
<!ENTITY % q "quzz">
]>
EOS
doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....
//}... -
Rake
:: RDocTask # options -> Array (107.0) -
rdoc コマンドに渡すオプションのリストを返します。
...rdoc コマンドに渡すオプションのリストを返します。
指定できるオプションは -o, --main, --title, -T 以外です。...