330件ヒット
[1-100件を表示]
(0.043秒)
種類
- インスタンスメソッド (231)
- 特異メソッド (44)
- ライブラリ (33)
- 文書 (11)
- モジュール関数 (11)
ライブラリ
- ビルトイン (11)
- pathname (11)
- pstore (33)
-
rexml
/ document (198) -
rexml
/ streamlistener (11) - win32ole (11)
クラス
- PStore (33)
- Pathname (11)
-
RDoc
:: Options (11) -
REXML
:: Attributes (88) -
REXML
:: Element (66) -
REXML
:: Elements (11) -
REXML
:: XPath (33) -
WIN32OLE
_ TYPELIB (11)
モジュール
-
Process
:: UID (11) -
REXML
:: StreamListener (11)
キーワード
- [] (22)
- []= (11)
- attribute (11)
- delete (11)
-
delete
_ all (11) -
delete
_ namespace (11) - doctype (11)
- each (22)
-
each
_ attribute (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) - fetch (11)
- first (11)
-
from
_ name (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) - match (11)
- namespaces (11)
- new (11)
- rdoc (11)
-
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) - root? (22)
-
root
_ node (11) -
ruby 1
. 8 . 3 feature (11)
検索結果
先頭5件
-
RDoc
:: Options # root -> Pathname (18217.0) -
コマンドライン引数の --root オプションで指定したディレクトリを返します。
...コマンドライン引数の --root オプションで指定したディレクトリを返します。
指定されていない場合はカレントディレクトリを返します。... -
REXML
:: Element # root -> REXML :: Element (18173.0) -
self が属する文書のルート要素を返します。
...ument.new(<<EOS)
<root>
<children>
<grandchildren />
</children>
</root>
EOS
children = doc.get_elements("/root/children").first
children.name # => "children"
children.root.name # => "root"
grandchildren = doc.get_elements("/root/children/grandchildren").first
grandchildren.name # => "grandchildr......en"
grandchildren.root.name # => "root"
//}... -
Pathname
# root? -> bool (9113.0) -
self がルートディレクトリであれば真を返します。判断は文字列操作によっ て行われ、ファイルシステムはアクセスされません。
...self がルートディレクトリであれば真を返します。判断は文字列操作によっ
て行われ、ファイルシステムはアクセスされません。
//emlist[例][ruby]{
require 'pathname'
Pathname('/').root? # => true
Pathname('/im/sure').root? # => false
//}... -
Process
:: UID . # from _ name(name) -> Integer (6226.0) -
引数で指定した名前の実ユーザ ID を返します。
...引数で指定した名前の実ユーザ ID を返します。
Process::UID.from_name("root") # => 0
Process::UID.from_name("nosuchuser") # => can't find user for nosuchuser (ArgumentError)
@param name ユーザ名を指定します。
@raise ArgumentError 引数で指定したユーザが... -
PStore
# root?(name) -> bool (6224.0) -
ルート name がデータベースに格納されている場合に真を返します。
...ルート name がデータベースに格納されている場合に真を返します。
@param name 探索するルート。
@raise PStore::Error トランザクション外でこのメソッドが呼び出された場合に発生します。
@see Hash#key?... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (6212.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
:: Element # root _ node -> REXML :: Document | REXML :: Node (6149.0) -
self が属する文書のルートノードを返します。
...ent.new(<<EOS)
<root>
<children>
<grandchildren />
</children>
</root>
EOS
children = doc.get_elements("/root/children").first
children.name # => "children"
children.root_node == doc # => true
grandchildren = doc.get_elements("/root/children/grandchildren").first
grandchildren.name # => "grandchi......ldren"
grandchildren.root_node == doc # => true
//}... -
REXML
:: Attributes # namespaces -> { String => String } (6124.0) -
self の中で宣言されている名前空間の集合を返します。
...<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.name... -
REXML
:: StreamListener # doctype(name , pub _ sys , long _ name , uri) -> () (256.0) -
文書型宣言(DTD)をパースしたときに呼び出されるコールバックメソッドです。
...スしたときに呼び出されるコールバックメソッドです。
pub_sys, long_name, uri はDTDが内部サブセットのみを
利用している場合には nil が渡されます。
@param name 宣言されているルート要素名が文字列で渡されます。
@param pub_sys "......PUBLIC" もしくは "SYSTEM" が渡されます。nilが渡される場合もあります。
@param long_name "SYSTEM" の場合はシステム識別子が、"PUBLIC"の場合は公開識別子が
文字列で渡されます
@param uri "SYSTEM" の場合は nil が、"PUBLIC" の場合はシ......me PUBLIC "foo" "bar">
というDTDに対しては
name: "me"
pub_sys: "PUBLIC"
long_name: "foo"
uri: "bar"
という引数が渡されます。
<!DOCTYPE root [
...
というDTDに対しては
name: "root"
pub_sys: nil
long_name: nil
uri: nil
という引数が渡されます... -
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (253.0) -
name で指定される属性を返します。
...
name で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という......@param name 属性名(文字列)
@param namespace 名前空間のURI(文字列)
//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
a.attribute("att") # => att='<'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.attribute("bar:att") # => bar:att='2'
a.attribute("baz") # => nil
//}...