14件ヒット
[1-14件を表示]
(0.149秒)
別のキーワード
種類
- インスタンスメソッド (11)
- 特異メソッド (2)
- クラス (1)
ライブラリ
-
rexml
/ document (14)
クラス
-
REXML
:: Comment (9) -
REXML
:: DocType (3) -
REXML
:: Element (1)
検索結果
先頭5件
-
REXML
:: Comment (78019.0) -
XML コメントを表すクラス。
XML コメントを表すクラス。
コメントとは <!-- と --> で挟まれたテキストです。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!-- xx -->
<root>
<!-- yy -->
text
<!-- zz -->
</root>
EOS
doc[0].string # => " xx "
doc.root[1].string # => " yy "
doc.root[3].string # => " zz "
//} -
REXML
:: Element # comments -> [REXML :: Comments] (42649.0) -
すべての comment 子ノードの配列を返します。
すべての comment 子ノードの配列を返します。
返される配列は freeze されます。 -
REXML
:: Comment . new(comment , parent = nil) -> REXML :: Comment (33712.0) -
Comment オブジェクトを生成します。
Comment オブジェクトを生成します。
引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。
@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノード -
REXML
:: Comment . new(string , parent = nil) -> REXML :: Comment (33412.0) -
Comment オブジェクトを生成します。
Comment オブジェクトを生成します。
引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。
@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノード -
REXML
:: Comment # clone -> REXML :: Comment (33352.0) -
内容が複製された Comment オブジェクトを返します。 (親ノードの情報は複製されません)。
内容が複製された Comment オブジェクトを返します。
(親ノードの情報は複製されません)。 -
REXML
:: Comment # <=>(other) -> -1 | 0 | 1 (33049.0) -
other と内容(REXML::Comment#string)を比較します。
other と内容(REXML::Comment#string)を比較します。 -
REXML
:: Comment # ==(other) -> bool (33049.0) -
other と内容(REXML::Comment#string)が同じならば真を返します。
other と内容(REXML::Comment#string)が同じならば真を返します。 -
REXML
:: Comment # node _ type -> Symbol (33049.0) -
シンボル :comment を返します。
シンボル :comment を返します。 -
REXML
:: Comment # string -> String (33001.0) -
コメント文字列を返します。
コメント文字列を返します。 -
REXML
:: Comment # string=(value) (33001.0) -
コメント文字列を設定します。
コメント文字列を設定します。
@param value 設定する文字列 -
REXML
:: Comment # to _ s -> String (33001.0) -
コメント文字列を返します。
コメント文字列を返します。 -
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (24073.0) -
output に DTD を出力します。
output に DTD を出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの深さ。指定しないでください。
@param transitive 無視されます。指定しないでください。
@param ie_hack 無視されます。指定しないでください。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (24055.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言されていない、
もしくはデフォルト値が宣言されていない、のいずれかの場合は nil を返します。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Doc... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (24055.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (c...