286件ヒット
[1-100件を表示]
(0.036秒)
種類
- インスタンスメソッド (220)
- 特異メソッド (44)
- クラス (11)
- モジュール (11)
ライブラリ
- ビルトイン (11)
-
irb
/ cmd / help (11) - psych (11)
- rexml (11)
-
rexml
/ document (242)
クラス
-
IRB
:: ExtendCommand :: Help (11) -
REXML
:: Attribute (11) -
REXML
:: Attributes (22) -
REXML
:: DocType (11) -
REXML
:: Element (66) -
REXML
:: XPath (33) - Regexp (11)
モジュール
- Psych (11)
-
REXML
:: Namespace (88)
キーワード
- Namespace (11)
- UndefinedNamespaceException (11)
-
add
_ namespace (22) - attribute (11)
-
delete
_ namespace (11) - each (11)
- execute (11)
- first (11)
-
get
_ attribute _ ns (11) -
has
_ name? (11) - load (11)
-
local
_ name (11) - match (11)
- name (11)
- name= (11)
- namespace (22)
- namespaces (33)
- prefix (11)
- prefix= (11)
検索結果
先頭5件
-
Regexp
# names -> [String] (21119.0) -
正規表現に含まれる名前付きキャプチャ(named capture)の名前を 文字列の配列で返します。
...正規表現に含まれる名前付きキャプチャ(named capture)の名前を
文字列の配列で返します。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.names
# => ["foo", "bar", "baz"]
/(?<foo>.)(?<foo>.)/.names
# => ["foo"]
/(.)(.)/.names
# => []
//}... -
REXML
:: UndefinedNamespaceException (15000.0) -
XMLのパース中に、定義されていない名前空間が現れた場合に発生する 例外です。
XMLのパース中に、定義されていない名前空間が現れた場合に発生する
例外です。 -
REXML
:: Namespace # expanded _ name -> String (12100.0) -
REXML::Namespace#name= で設定された名前を返します。
...REXML::Namespace#name= で設定された名前を返します。
name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。
@see REXML::Namespace#prefix... -
REXML
:: Namespace # fully _ expanded _ name -> String (12100.0) -
完全修飾名を返します。
完全修飾名を返します。 -
IRB
:: ExtendCommand :: Help # execute(*names) -> nil (9213.0) -
RI から Ruby のドキュメントを参照します。
...Ruby のドキュメントを参照します。
irb(main):001:0> help String#match
...
@param names 参照したいクラス名やメソッド名などを文字列で指定します。
names を指定しなかった場合は、RI を対話的なモードで起動します。メソッド
名......ができま
す。
irb(main):001:0> help
Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.
>> String#match
String#match
(from ruby core)
------------------------------------------------------------------------------
str.m... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (9200.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/>"... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (9100.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
:: Attributes # namespaces -> { String => String } (9100.0) -
self の中で宣言されている名前空間の集合を返します。
...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
p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org....../foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}... -
REXML
:: DocType # namespaces -> nil (9100.0) -
nil を返します。
nil を返します。 -
REXML
:: Element # add _ namespace(prefix , uri) -> self (9100.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'/>"
//}...