552件ヒット
[201-300件を表示]
(0.188秒)
別のキーワード
種類
- インスタンスメソッド (468)
- 特異メソッド (36)
- クラス (24)
- ライブラリ (12)
- モジュール (12)
ライブラリ
-
rexml
/ document (540)
クラス
-
REXML
:: Attribute (192) -
REXML
:: Attributes (192) -
REXML
:: DocType (24) -
REXML
:: Element (96)
キーワード
- << (12)
- == (12)
- Attribute (12)
- Attributes (12)
- Namespace (12)
- [] (12)
- []= (12)
- add (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
attribute
_ of (12) - attributes (12)
-
attributes
_ of (12) - clone (12)
- delete (12)
-
delete
_ all (12) -
delete
_ attribute (12) - each (12)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) - element (12)
- element= (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
has
_ attributes? (12) - length (12)
- namespace (12)
- namespaces (12)
- new (36)
-
node
_ type (12) - normalized= (12)
- prefix (12)
- prefixes (12)
- remove (12)
- size (12)
-
to
_ a (12) -
to
_ s (12) -
to
_ string (12) - value (12)
- write (12)
- xpath (12)
検索結果
先頭5件
-
REXML
:: Attribute . new(attribute , value , parent = nil) -> REXML :: Attribute (11234.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ます。
通常はこのメソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属す... -
REXML
:: Attribute . new(attribute _ to _ clone , parent = nil) -> REXML :: Attribute (11234.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ます。
通常はこのメソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属す... -
REXML
:: Attributes # delete(attribute) -> REXML :: Element (11137.0) -
指定した属性を取り除きます。
...り除きます。
attribute で取り除く属性を指定します。
文字列もしくは REXML::Attribute オブジェクトを指定します
self が属する要素(REXML::Element)を返します。
@param attribute 取り除く属性(文字列もしくは REXML::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.delete("att") # => <a foo:......att='1' bar:att='2'/>
a.attributes.delete("foo:att") # => <a bar:att='2'/>
attr = a.attributes.get_attribute("bar:att")
a.attributes.delete(attr) # => <a/>
//}... -
REXML
:: Attributes # <<(attribute) -> () (11132.0) -
属性を追加/更新します。
.../更新します。
attribute で更新する属性(REXML::Attribute オブジェクト)を
指定します。既に同じ名前(REXML::Attribute#name)のオブジェクトが
存在する場合は属性が上書きされ、ない場合は追加されます。
@param attribute 追加(更新)する......属性(REXML::Attribute オブジェクト)
@see REXML::Attributes#[]=... -
REXML
:: Attributes # add(attribute) -> () (11132.0) -
属性を追加/更新します。
.../更新します。
attribute で更新する属性(REXML::Attribute オブジェクト)を
指定します。既に同じ名前(REXML::Attribute#name)のオブジェクトが
存在する場合は属性が上書きされ、ない場合は追加されます。
@param attribute 追加(更新)する......属性(REXML::Attribute オブジェクト)
@see REXML::Attributes#[]=... -
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (11107.0) -
name という名前を持つ属性をすべて削除します。
...//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.delete_all("att") # => [att='&l... -
REXML
:: Attributes # to _ a -> [Attribute] (11107.0) -
属性の配列を返します。
...属性の配列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a x='1' y='2' z='3' />")
doc.root.attributes.to_a # => [x='1', y='2', z='3']
//}... -
REXML
:: Attributes . new(element) -> REXML :: Attributes (11100.0) -
空の Attributes オブジェクトを生成します。
...空の Attributes オブジェクトを生成します。
どの要素の属性であるかを element で指定します。
通常は REXML::Element.new によって Attributes オブジェクト
が生成されるため、このメソッドを使う必要はありません。
@param element 属... -
REXML
:: Attribute # prefix -> String (11036.0) -
属性の名前空間を返します。
...st[][ruby]{
require 'rexml/document'
e = REXML::Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
p e.attributes.get_attribute( "a" ).prefix # -> "nsa"
p e.attributes.get_attribute( "b" ).prefix # -> "elns"
a = REXML::Attribute.new( "x", "y" )
p a....