3720件ヒット
[1-100件を表示]
(0.073秒)
種類
- インスタンスメソッド (2784)
- 特異メソッド (480)
- クラス (300)
- 定数 (108)
- モジュール (48)
クラス
-
REXML
:: AttlistDecl (84) -
REXML
:: Attribute (192) -
REXML
:: Attributes (192) -
REXML
:: CData (48) -
REXML
:: Child (108) -
REXML
:: Comment (108) -
REXML
:: Declaration (24) -
REXML
:: DocType (216) -
REXML
:: Document (252) -
REXML
:: Element (528) -
REXML
:: ElementDecl (12) -
REXML
:: Elements (168) -
REXML
:: Entity (156) -
REXML
:: ExternalEntity (36) -
REXML
:: Formatters :: Default (24) -
REXML
:: Formatters :: Pretty (60) -
REXML
:: Formatters :: Transitive (12) -
REXML
:: Instruction (96) -
REXML
:: NotationDecl (96) -
REXML
:: Parent (348) -
REXML
:: Text (156) -
REXML
:: XMLDecl (180) -
REXML
:: XPath (36)
モジュール
-
REXML
:: EntityConst (60) -
REXML
:: Namespace (72) -
REXML
:: Node (60) -
REXML
:: Security (48)
キーワード
- << (48)
- <=> (24)
- == (48)
- AMP (12)
- APOS (12)
- AttlistDecl (12)
- Attribute (12)
- Attributes (12)
- CData (12)
- Comment (12)
- DECLARATION (12)
-
DEFAULT
_ ENTITIES (12) -
DEFAULT
_ VERSION (12) - Declaration (12)
- Default (12)
- DocType (12)
- Document (12)
- Element (12)
- ElementDecl (12)
- Elements (12)
- Entity (12)
- EntityConst (12)
- ExternalEntity (12)
- Functions (12)
- GT (12)
- Instruction (12)
- LT (12)
- NotationDecl (12)
- Output (12)
- Parent (12)
- Pretty (12)
- QUOT (12)
- Security (12)
- SourceFactory (12)
- Text (12)
- Transitive (12)
- TreeParser (12)
- UNDEFINED (12)
- XMLTokens (12)
- XPath (12)
- XPathParser (12)
- [] (48)
- []= (60)
- add (60)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) - attributes (12)
-
attributes
_ of (12) - bytes (12)
- cdatas (12)
- children (12)
- clone (96)
- collect (12)
- comments (12)
- compact (12)
- compact= (12)
- content (12)
- content= (12)
- context (24)
- context= (12)
-
deep
_ clone (12) - default (12)
- delete (36)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ if (24) -
delete
_ namespace (12) - doctype (24)
- document (24)
- dowrite (12)
- each (72)
-
each
_ attribute (12) -
each
_ child (24) -
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ index (24) - element (12)
- element= (12)
-
element
_ name (12) - elements (12)
- empty? (24)
- encoding (24)
- entities (12)
- entity (12)
-
entity
_ expansion _ limit (24) -
entity
_ expansion _ limit= (24) -
entity
_ expansion _ text _ limit (24) -
entity
_ expansion _ text _ limit= (24) - external (12)
-
external
_ id (12) -
find
_ first _ recursive (12) - first (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ text (12) -
has
_ attributes? (12) -
has
_ elements? (12) -
has
_ name? (12) -
has
_ text? (12) - include? (12)
- index (24)
-
index
_ in _ parent (12) - inject (12)
-
insert
_ after (12) -
insert
_ before (12) - instructions (12)
- length (24)
-
local
_ name (12) - match (12)
- matches? (12)
- name (60)
- namespace (24)
- namespaces (36)
- ndata (12)
- new (288)
-
next
_ element (12) -
next
_ sibling (12) -
next
_ sibling= (12) -
next
_ sibling _ node (12) -
node
_ type (108) - normalize (12)
- normalized (12)
- normalized= (12)
- notation (12)
- notations (12)
- nowrite (12)
- parent (12)
- parent= (12)
- parent? (24)
-
parse
_ stream (12) - prefix (24)
- prefixes (24)
-
previous
_ element (12) -
previous
_ sibling= (12) - pubid (12)
- public (24)
- public= (12)
- push (12)
- raw (24)
- raw= (12)
- ref (12)
- remove (12)
-
replace
_ child (12) -
replace
_ with (12) - root (24)
-
root
_ node (12) - size (36)
-
stand
_ alone? (24) - standalone (12)
- standalone= (12)
- string (12)
- string= (12)
- system (24)
- system= (12)
- target (12)
- target= (12)
- text (12)
- text= (12)
- texts (12)
-
to
_ a (36) -
to
_ s (108) -
to
_ string (12) - unnormalize (12)
- unnormalized (12)
- unshift (12)
- value (48)
- value= (12)
- version (24)
- whitespace (12)
- width (12)
- width= (12)
- write (132)
- writeencoding (12)
- writethis (12)
-
xml
_ decl (12) - xmldecl (12)
- xpath (24)
検索結果
先頭5件
- REXML
:: DocType # entities -> { String => REXML :: Entity } - REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil - REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () - REXML
:: Attributes # get _ attribute(name) -> Attribute | nil - REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil
-
REXML
:: DocType # entities -> { String => REXML :: Entity } (9302.0) -
DTD で宣言されている実体の集合を Hash で返します。
...DTD で宣言されている実体の集合を Hash で返します。
返される Hash は実体参照名をキーとし、対応する REXML::Entity オブジェクト
を値とするハッシュテーブルです。
これには、XML のデフォルトの実体(gt, lt, quot, apos)も含まれ......。
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "barbarbarbar">
]>
EOS
p doctype.entities # => { "gt" => #<REXML::Entity: ...>,
# "lt" => #<REXML::Entity: ...>, ... }
p doctype.entities["bar"].to_s # => "<!ENTITY bar \"barb......arbarbar\">"
p doctype.entities["gt"].to_s # => "<!ENTITY gt \">\">"
//}... -
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (9302.0) -
要素から key という属性名の属性を削除します。
...素(文字列(属性名) or REXML::Attributeオブジェクト)
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E x='foo' y:x='bar'/>
e.delete_attribute("x"); e # => <E y:x='bar'/>
//}... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9202.0) -
各属性に対しブロックを呼び出します。
...ML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").......first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9102.0) -
name という名前の属性を取得します。
...ttributes#[]
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("att......") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9102.0) -
namespace と name で特定される属性を返します。
...ist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='......<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
REXML
:: DocType # entity(name) -> String | nil (9102.0) -
name という実体参照名を持つ実体を文字列で返します。
...EXML::Entity#unnormalized 参照)
された文字列が返されます。
name という名前を持つ実体が存在しない場合には nil を返します。
@param name 実体参照名(文字列)
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "......barbarbarbar">
]>
EOS
p doctype.entity("bar") # => "barbarbar"
p doctype.entity("foo") # => nil
//}... -
REXML
:: DocType # node _ type -> Symbol (9102.0) -
Symbol :doctype を返します。
...Symbol :doctype を返します。... -
REXML
:: ExternalEntity # write(output , indent) -> () (9102.0) -
output へ self を文字列化して出力します。
...output へ self を文字列化して出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの大きさ。無視されます。... -
REXML
:: Formatters :: Pretty # compact -> bool (9102.0) -
出力をコンパクトにするかどうかを返します。
...出力をコンパクトにするかどうかを返します。
これが真の場合、出力の空白をできる限り削除しようとします。
デフォルト値は false です。
@see REXML::Formatters::Pretty#compact=...