るりまサーチ

最速Rubyリファレンスマニュアル検索!
72件ヒット [1-72件を表示] (0.085秒)

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. float >
  5. complex >

ライブラリ

クラス

キーワード

検索結果

Gem::Specification#author -> String (18202.0)

作成者の名前を返します。

作成者の名前を返します。

Gem::Specification#authors -> Array (6201.0)

作成者の名前の配列を返します。

作成者の名前の配列を返します。

REXML::DocType#attributes_of(element) -> [REXML::Attribute] (119.0)

DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。

...)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author
CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS

p doctype.attributes_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 (113.0)

DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の いずれかの文字列を返します。

...l1-strict.dtd">
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"
doct...
...ype.external_id # => nil
//}...

REXML::DocType#attribute_of(element, attribute) -> String | nil (107.0)

DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。

...ook (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author
CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS

p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctyp...
...e.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}...

絞り込み条件を変える

REXML::DocType#write(output, indent = 0, transitive = false, ie_hack = false) -> () (107.0)

output に DTD を出力します。

...ment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author
CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
EOS

doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....