84件ヒット
[1-84件を表示]
(0.016秒)
種類
- インスタンスメソッド (72)
- 文書 (12)
ライブラリ
- pstore (12)
-
rexml
/ document (60)
クラス
- PStore (12)
-
REXML
:: Attributes (24) -
REXML
:: Element (24) -
REXML
:: Elements (12)
キーワード
-
delete
_ all (12) -
delete
_ element (12) -
delete
_ namespace (12) -
ruby 1
. 8 . 3 feature (12)
検索結果
先頭5件
-
REXML
:: Elements # delete(element) -> Element (18173.0) -
element で指定した子要素を取り除きます。
...c.root.elements[1]
doc.root.elements.delete b # => <b/>
doc.root.to_s # => "<a><c/><c id='1'/></a>"
doc.elements.delete("a/c[@id='1']") # => <c id='1'/>
doc.root.to_s # => "<a><c/></a>"
doc.root.elements.delete 1 # => <c/>
doc.root.t......o_s # => "<a/>"
doc.root.elements.delete '/a'
doc.root.to_s # => ""
//}... -
PStore
# delete(name) -> object (18137.0) -
ルートnameに対応する値を削除します。
...tore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # => []
ary = db["root"] = [1,2,3,4]
ary[0] = [1,1.5]
end
db.transaction do |pstore|
pstore.delete("root") # => [[1, 1.5], 2, 3, 4]
pstore.delete("root") # => nil
end
@see Hash#delete... -
REXML
:: Attributes # delete(attribute) -> REXML :: Element (18137.0) -
指定した属性を取り除きます。
...ocument.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
:: Element # delete _ element(element) -> REXML :: Element (6155.0) -
子要素を削除します。
...ML::Elements#delete
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b/><c/><c id="1"/><d/><c/></a>'
doc.delete_element("/a/b")
doc.to_s # => "<a><c/><c id='1'/><d/><c/></a>"
doc.delete_element("a/c[@id='1']")
doc.to_s # => "<a><c/><d/><c/></a>"
doc.root.delete_element("c")......doc.to_s # => "<a><d/><c/></a>"
doc.root.delete_element("c")
doc.to_s # => "<a><d/></a>"
doc.root.delete_element(1)
doc.to_s # => "<a/>"
//}... -
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (6125.0) -
name という名前を持つ属性をすべて削除します。
...'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='<']
a # => <a foo:att='1' b... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (6125.0) -
名前空間を要素から削除します。
...除します。
@param namespace 削除する名前空間の prefix
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
doc.root.delete_namespace
doc.to_s # => "<a xmlns:foo='bar'/>"
doc.root.delete_namespace 'foo'
doc.to_s # => "<a/>"
//}... -
ruby 1
. 8 . 3 feature (12.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...ョンを受け付けるようになりました。
cd が :noop オプションを受け付けなくなりました。
cp_r が :dereference_root オプションを受け付けるようになりました。
=== 2005-09-16
: File.join [ruby] [compat]
型チェックを厳密にするよう......。
: net/http [lib] [new]
WebDAV のメソッドをサポートするようになりました。
PROPPATCH, LOCK, UNLOCK, OPTIONS, PROPFIND, DELETE, MOVE, COPY, MKCOL。
: Net::HTTPRequest#body_exist? [lib] [obsolete]
: Net::HTTPResponse#response [lib] [obsolete]
: Net::HTTPResponse#he...