527件ヒット
[1-100件を表示]
(0.105秒)
ライブラリ
- ビルトイン (40)
-
cgi
/ session (11) -
cgi
/ session / pstore (11) - ipaddr (18)
-
minitest
/ spec (1) - mkmf (22)
- nkf (11)
- psych (22)
- rbconfig (11)
-
rexml
/ document (220) -
rexml
/ parsers / sax2parser (55) -
rexml
/ sax2listener (22) - rss (11)
-
shell
/ command-processor (6) - socket (22)
- tmpdir (22)
クラス
- BasicSocket (22)
-
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: PStore (11) - Dir (22)
- IPAddr (18)
- Module (1)
-
Psych
:: Handler (11) -
Psych
:: Nodes :: Document (11) -
REXML
:: Attribute (22) -
REXML
:: Attributes (33) -
REXML
:: Element (88) -
REXML
:: Parsers :: SAX2Parser (55) -
Shell
:: CommandProcessor (6) - String (35)
- Symbol (5)
モジュール
- Kernel (22)
-
REXML
:: Namespace (77) -
REXML
:: SAX2Listener (22) - RbConfig (11)
キーワード
-
MAKEFILE
_ CONFIG (11) - NKF (11)
- OverlappedPrefixError (11)
-
add
_ namespace (22) - attribute (11)
-
create
_ makefile (11) -
delete
_ namespace (11) -
delete
_ prefix (7) -
delete
_ prefix! (7) -
delete
_ suffix (7) -
delete
_ suffix! (7) -
end
_ prefix _ mapping (11) -
get
_ attribute _ ns (11) - getsockopt (11)
-
has
_ name? (11) -
infect
_ with _ assertions (1) -
install
_ files (11) -
install
_ system _ commands (6) - listen (55)
-
local
_ name (11) - mask (11)
- mktmpdir (22)
- name (11)
- name= (11)
- namespace (22)
- namespaces (22)
- new (33)
- prefix= (18)
- prefixes (22)
-
rexml
/ parsers / sax2parser (11) - setsockopt (11)
-
start
_ document (11) -
start
_ prefix _ mapping (11) -
start
_ with? (12) - whitespace (11)
- リテラル (11)
検索結果
先頭5件
-
REXML
:: Namespace # prefix -> String (21123.0) -
prefix (前置修飾子) を返します。
...prefix (前置修飾子) を返します。
@see REXML::Namespace#prefix=... -
REXML
:: Attribute # prefix -> String (21119.0) -
属性の名前空間を返します。
...ます。
//emlist[][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.prefix # -> ""
//}... -
String
# delete _ prefix(prefix) -> String (12348.0) -
文字列の先頭から prefix を削除した文字列のコピーを返します。
...ら prefix を削除した文字列のコピーを返します。
@param prefix 先頭から削除する文字列を指定します。
@return 文字列の先頭から prefix を削除した文字列のコピー
//emlist[][ruby]{
"hello".delete_prefix("hel") # => "lo"
"hello".delete_prefix("llo")......# => "hello"
//}
@see String#delete_prefix!
@see String#delete_suffix
@see String#start_with?... -
String
# delete _ prefix!(prefix) -> self | nil (12342.0) -
self の先頭から破壊的に prefix を削除します。
...lf の先頭から破壊的に prefix を削除します。
@param prefix 先頭から削除する文字列を指定します。
@return 削除した場合は self、変化しなかった場合は nil
//emlist[][ruby]{
"hello".delete_prefix!("hel") # => "lo"
"hello".delete_prefix!("llo") # => nil......//}
@see String#delete_prefix
@see String#delete_suffix!
@see String#start_with?... -
RSS
:: OverlappedPrefixError (12000.0) -
-
REXML
:: SAX2Listener # start _ prefix _ mapping(prefix , uri) -> () (9242.0) -
名前空間の接頭辞(prefix)が導入されたときに呼び出される コールバックメソッドです。
...辞(prefix)が導入されたときに呼び出される
コールバックメソッドです。
以下のようなXMLを処理
<a xmlns:foo="http://foo.example.org/">
<foo:b />
</a>
すると
start_prefix_mapping("foo", "http://foo.example.org/")
start_element(nil, "a", "a", {"xmlns:fo......o" => "http://foo.example.org/"})
:
end_element(nil, "a", "a")
end_prefix_mapping("foo")
の順で呼びだされます。つまり名前空間を導入した要素の start_element の前に
start_prefix_mapping が呼びだされます。
@param prefix 接頭辞の文字列が渡されま... -
REXML
:: Namespace # prefix=(value) (9229.0) -
prefix (前置修飾子) を設定します。
...prefix (前置修飾子) を設定します。
@param value prefix文字列
@see REXML::Namespace#prefix... -
REXML
:: SAX2Listener # end _ prefix _ mapping(prefix) -> () (9224.0) -
名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。
...名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。
@param prefix 接頭辞の文字列が渡されます... -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (9207.0) -
全てのシステムコマンドをメソッドとして定義します。
...うプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。... -
REXML
:: Element # prefixes -> [String] (9122.0) -
self の文脈で定義されている prefix を文字列の配列を返します。
...self の文脈で定義されている prefix を文字列の配列を返します。
対象の要素とその外側の要素で定義されている prefix を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>"......)
doc.elements['//b'].prefixes # => ["x", "y"]
//}... -
REXML
:: Attributes # prefixes -> [String] (9116.0) -
self の中で宣言されている prefix の集合を 文字列の配列で返します。
...self の中で宣言されている prefix の集合を
文字列の配列で返します。
self が属する要素より上位の要素で定義されているものは含みません。
//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
p doc.root.attributes.prefixes # => ["foo", "bar"]
p a.attributes.prefixes # => []
//}...