別のキーワード
種類
- インスタンスメソッド (96)
- 特異メソッド (24)
- クラス (12)
ライブラリ
-
rexml
/ document (132)
クラス
-
REXML
:: Comment (108) -
REXML
:: Element (12)
検索結果
先頭5件
-
REXML
:: Comment (23000.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
:: Comment . new(comment , parent = nil) -> REXML :: Comment (21114.0) -
Comment オブジェクトを生成します。
...ment オブジェクトを生成します。
引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。
@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノード... -
REXML
:: Comment . new(string , parent = nil) -> REXML :: Comment (21114.0) -
Comment オブジェクトを生成します。
...ment オブジェクトを生成します。
引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。
@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノード... -
REXML
:: Comment # clone -> REXML :: Comment (21101.0) -
内容が複製された Comment オブジェクトを返します。 (親ノードの情報は複製されません)。
内容が複製された Comment オブジェクトを返します。
(親ノードの情報は複製されません)。 -
REXML
:: Comment # <=>(other) -> -1 | 0 | 1 (21016.0) -
other と内容(REXML::Comment#string)を比較します。
...other と内容(REXML::Comment#string)を比較します。... -
REXML
:: Comment # ==(other) -> bool (21016.0) -
other と内容(REXML::Comment#string)が同じならば真を返します。
...other と内容(REXML::Comment#string)が同じならば真を返します。... -
REXML
:: Comment # node _ type -> Symbol (21000.0) -
シンボル :comment を返します。
シンボル :comment を返します。 -
REXML
:: Comment # string -> String (21000.0) -
コメント文字列を返します。
コメント文字列を返します。 -
REXML
:: Comment # string=(value) (21000.0) -
コメント文字列を設定します。
コメント文字列を設定します。
@param value 設定する文字列