130件ヒット
[101-130件を表示]
(0.071秒)
別のキーワード
ライブラリ
- ビルトイン (46)
-
rexml
/ document (84)
クラス
-
REXML
:: Attribute (24) -
REXML
:: Attributes (24) -
REXML
:: Element (36) - String (40)
- Symbol (6)
キーワード
-
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) - namespace (24)
- namespaces (24)
- prefixes (24)
-
start
_ with? (14)
検索結果
先頭3件
-
REXML
:: Element # namespaces -> {String => String} (215.0) -
self の文脈で定義されている名前空間の情報を返します。
...報を返します。
対象の要素とその外側の要素で定義されている名前空間を、{ prefix => 識別子 }
というハッシュテーブルで返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (114.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... -
Symbol
# start _ with?(*prefixes) -> bool (113.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...self の先頭が prefixes のいずれかであるとき true を返します。
(self.to_s.start_with?と同じです。)
@param prefixes パターンを表す文字列または正規表現 (のリスト)
@see Symbol#end_with?
@see String#start_with?
//emlist[][ruby]{
:hello.start_with?("hel......l") #=> true
:hello.start_with?(/H/i) #=> true
# returns true if one of the prefixes matches.
:hello.start_with?("heaven", "hell") #=> true
:hello.start_with?("heaven", "paradise") #=> false
//}...