1353件ヒット
[1-100件を表示]
(0.039秒)
種類
- インスタンスメソッド (858)
- 特異メソッド (352)
- クラス (121)
- モジュール (11)
- 定数 (11)
クラス
-
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (55) -
REXML
:: Attributes (154) -
REXML
:: CData (33) -
REXML
:: Child (33) -
REXML
:: Comment (22) -
REXML
:: DocType (110) -
REXML
:: Document (66) -
REXML
:: Element (286) -
REXML
:: ElementDecl (11) -
REXML
:: Elements (110) -
REXML
:: Entity (33) -
REXML
:: ExternalEntity (11) -
REXML
:: Formatters :: Default (11) -
REXML
:: Formatters :: Pretty (11) -
REXML
:: Formatters :: Transitive (11) -
REXML
:: Instruction (33) -
REXML
:: NotationDecl (11) -
REXML
:: Parent (11) -
REXML
:: Parsers :: PullParser (11) -
REXML
:: Parsers :: SAX2Parser (22) -
REXML
:: Parsers :: StreamParser (11) -
REXML
:: Parsers :: UltraLightParser (22) -
REXML
:: Text (66) -
REXML
:: XMLDecl (22) -
REXML
:: XPath (33)
モジュール
キーワード
- << (11)
- Comment (11)
-
DEFAULT
_ VERSION (11) - Default (11)
- Entity (11)
- ExternalEntity (11)
- Instruction (11)
- NotationDecl (11)
- ParseException (11)
- Pretty (11)
- StreamListener (11)
- Transitive (11)
- TreeParser (11)
- XMLDecl (11)
- [] (22)
- []= (22)
- add (11)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ namespace (22) - attribute (11)
-
attribute
_ of (11) -
attributes
_ of (11) - clone (11)
- content (11)
- context (11)
- context= (11)
- delete (22)
-
delete
_ all (22) -
delete
_ attribute (11) -
delete
_ element (11) -
delete
_ namespace (11) - each (33)
-
each
_ attribute (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) - encoding (11)
- entities (11)
- entity (11)
- entitydecl (11)
-
external
_ id (11) - first (11)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ text (11) -
has
_ elements? (11) - length (11)
- match (11)
- name (11)
- namespace (22)
- namespaces (22)
-
next
_ element (11) -
next
_ sibling= (11) - parse (11)
-
parse
_ stream (11) - prefix (11)
- prefixes (22)
-
previous
_ sibling= (11) - public (11)
- raw (11)
- raw= (11)
- rewind (11)
- root (11)
-
root
_ node (11) - size (22)
-
stand
_ alone? (11) - system (11)
- target (11)
- text (11)
- text= (11)
-
to
_ a (22) -
to
_ s (33) -
to
_ string (11) - value (22)
- value= (11)
- version (11)
- write (11)
- xpath (11)
検索結果
先頭5件
- REXML
:: Text . new(arg , respect _ whitespace = false , parent = nil , raw = nil , entity _ filter = nil , illegal = REXML :: Text :: NEEDS _ A _ SECOND _ CHECK) - REXML
:: CData . new(text , respect _ whitespace = true , parent = nil) -> REXML :: CData - REXML
:: DocType . new(source , parent = nil) -> REXML :: DocType - REXML
:: Entity . new(array) -> REXML :: Entity - REXML
:: Entity . new(name , value , parent=nil , reference=false) -> REXML :: Entity
-
REXML
:: Text . new(arg , respect _ whitespace = false , parent = nil , raw = nil , entity _ filter = nil , illegal = REXML :: Text :: NEEDS _ A _ SECOND _ CHECK) (18150.0) -
テキストノードオブジェクトを生成します。
...ジェクトを生成します。
arg でノードの内容を指定します。
文字列の場合はそれが内容として使われます。
REXML::Text オブジェクトの場合はその内容が複製されます。
respect_whitespace に真を指定すると、arg に含まれる空白文......あると解釈され、
rexml はテキストに含まれているすべての(定義済み)実体を
エスケープします
nilの場合、親ノードが raw モードであるかどうかで
self が raw モードになるかどうかが決まります。
arg に REXML::Text オブジェクト......[doctype なしの場合][ruby]{
p REXML::Text.new("<&", false, nil, false).to_s # => "<&"
p REXML::Text.new("<&", false, nil, false).to_s # => "&lt;&amp;"
p REXML::Text.new("<&", false, nil, true).to_s # => "<&"
p REXML::Text.new("<&", false, nil, true).to_s # p... -
REXML
:: CData . new(text , respect _ whitespace = true , parent = nil) -> REXML :: CData (18132.0) -
text をテキストとして持つ CData オブジェクトを生成します。
...'rexml/document'
doc = REXML::Document.new(<<EOS)
<root />
EOS
doc.root.add(REXML::CData.new("foo bar baz "))
doc.to_s # => "<root><![CDATA[foo bar baz ]]></root>\n"
doc = REXML::Document.new(<<EOS)
<root />
EOS
doc.root.add(REXML::CData.new("foo bar baz ", true))
doc.root.add(REXML::CData.new... -
REXML
:: DocType . new(source , parent = nil) -> REXML :: DocType (18120.0) -
DocType オブジェクトを生成します。
...クトを生成します。
REXML::Source オブジェクトの場合は、Source オブジェクトが
保持しているDTDのテキストがパースされ、その内容によって DocType
オブジェクトが初期化されます。
REXML::DocType.new(Source.new(<<EOS))
<!DOCTYPE html PU......スもありますが、内部用なので使わないで
ください。
一般的にいって、XML 文書に含まれる DTD は REXML::Document.new などで
適切に解析され、REXML::Document#doctype で取得できます。
このメソッドを直接使う必要はありません。... -
REXML
:: Entity . new(array) -> REXML :: Entity (18115.0) -
新たな Entity オブジェクトを生成して返します。
...ty オブジェクトが欲しい場合は、
文書に適切な DTD を含めておいてそれを REXML::Document.new で
パースするようにしてください。
配列を使うほうは rexml のパーサが内部的に利用するため通常は利用しません。
@param name 実体参......照の名前
@param value 参照の値
@param parent 親ノード
@param reference パラメータ実体であるかどうかの真偽値
@param array 初期化のための配列
=== 例
「>」「>」 の対応は以下のように実現されます。
REXML::Entity.new("gt", ">")... -
REXML
:: Entity . new(name , value , parent=nil , reference=false) -> REXML :: Entity (18115.0) -
新たな Entity オブジェクトを生成して返します。
...ty オブジェクトが欲しい場合は、
文書に適切な DTD を含めておいてそれを REXML::Document.new で
パースするようにしてください。
配列を使うほうは rexml のパーサが内部的に利用するため通常は利用しません。
@param name 実体参......照の名前
@param value 参照の値
@param parent 親ノード
@param reference パラメータ実体であるかどうかの真偽値
@param array 初期化のための配列
=== 例
「>」「>」 の対応は以下のように実現されます。
REXML::Entity.new("gt", ">")... -
REXML
:: Element . new(arg = UNDEFINED , parent = nil , context = nil) -> REXML :: Element (18114.0) -
要素オブジェクトを生成します。
...が REXML::Element オブジェクトの場合は、
新たな要素の名前、属性、context が arg のもので初期化されます。
parent で親ノードを指定します。
context には hash table で要素のコンテキストを指定します。
基本的には text node (REXML::......。
また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitespace
空白を無視して欲しい要素の名前の集合を文字列の......一切変換されません。
REXML::Element#raw も参照してください。
@param arg 要素の名前(String)もしくは初期化に使う REXML::Element
オブジェクト
@param parent 親ノード
@param context コンテキスト(Hash)
@see REXML::Parent.new, REXML::Child.new... -
REXML
:: Attributes . new(element) -> REXML :: Attributes (18108.0) -
空の Attributes オブジェクトを生成します。
...どの要素の属性であるかを element で指定します。
通常は REXML::Element.new によって Attributes オブジェクト
が生成されるため、このメソッドを使う必要はありません。
@param element 属性が属する要素(REXML::Element オブジェクト)... -
REXML
:: Elements . new(parent) -> REXML :: Elements (18108.0) -
空の要素の集合を表すオブジェクトを生成します。
...空の要素の集合を表すオブジェクトを生成します。
通常は REXML::Element.new によって Elements オブジェクトが
生成されるため、このメソッドを使う必要はありません。
@param parant 親要素オブジェクト... -
REXML
:: Attribute . new(attribute , value , parent = nil) -> REXML :: Attribute (18103.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属する要素(REXML::Element)... -
REXML
:: Attribute . new(attribute _ to _ clone , parent = nil) -> REXML :: Attribute (18103.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属する要素(REXML::Element)...