33件ヒット
[1-33件を表示]
(0.083秒)
種類
- インスタンスメソッド (22)
- 文書 (11)
ライブラリ
-
rexml
/ document (22)
クラス
-
REXML
:: Attribute (11) -
REXML
:: Element (11)
キーワード
-
add
_ namespace (11) -
ruby 1
. 8 . 4 feature (11)
検索結果
先頭3件
-
REXML
:: Attribute # namespace(arg = nil) -> String | nil (18219.0) -
属性の名前空間の URI を返します。
...//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("xmlns:ns", "http://www.example.com/ns")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "http://www.example.com/ns"
//}... -
REXML
:: Element # add _ namespace(prefix , uri) -> self (12358.0) -
名前空間を要素に追加します。
...ォルトの namespace の uri を指定します。
既に同じ prefix が存在する場合はそれが上書きされます。
@param prefix 名前空間の prefix
@param uri 名前空間の uri
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo"......, "bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
a.add_namespace("foo", "baz")
a.to_s # => "<a xmlns:foo='baz' xmlns='twiddle'/>"
//}... -
ruby 1
. 8 . 4 feature (1542.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたクラス/メソッドなど(互換......が
traceに渡されていたバグの修正。((<ruby-talk:169307>))
: set_trace_func [change]
#Mon Sep 26 22:32:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * eval.c (set_trace_func): add rb_secure(4) to prevent adding
# tracing function.
$SAFE=4でtrace_funcの......きませんので,ご注意ください。
# * ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces.
#
# * ext/tk/lib/tk/namespace.rb: ditto.
#
Tcl/Tk 上の namespace の扱いが正常に行えないというバグを修正しました.
#Wed Nov 2 20:14:53 2005 Hidet...