るりまサーチ

最速Rubyリファレンスマニュアル検索!
684件ヒット [1-100件を表示] (0.129秒)

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

検索結果

<< 1 2 3 ... > >>

Psych::TreeBuilder#root -> Psych::Nodes::Stream (18218.0)

AST の root を返します。

...
A
ST の root を返します。

@see Psych::Nodes::Stream...

RDoc::Options#root -> Pathname (18218.0)

コマンドライン引数の --root オプションで指定したディレクトリを返します。

...コマンドライン引数の --root オプションで指定したディレクトリを返します。

指定されていない場合はカレントディレクトリを返します。...

Net::IMAP::MailboxQuotaRoot#quotaroots -> [String] (15217.0)

問い合わせしたメールボックスの quota root 名を配列で返します。

...問い合わせしたメールボックスの quota root 名を配列で返します。

空の場合もありえます。...

Net::IMAP#getquotaroot(mailbox) -> [Net::IMAP::MailboxQuotaRoot | Net::IMAP::MailboxQuota] (12435.0)

GETQUOTAROOT コマンドを送って 指定したメールボックスの quota root の一覧と、 関連する quota の情報を返します。

...GETQUOTAROOT コマンドを送って
指定したメールボックスの quota root の一覧と、
関連する quota の情報を返します。

quota root の情報は Net::IMAP::MailboxQuotaRoot のオブジェクトで、
返り値の配列の中に唯一含まれています。
quota の情...
...られた quota root ごとに
Net::IMAP::MailboxQuota オブジェクトで得られます。

詳しくは 2087 を見てください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。

@param mailbox quota root を得たい...
...メールボックス名(文字列)
@raise Net::IMAP::NoResponseError 指定したメールボックスが存在しない場合に発生します...

REXML::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (9261.0)

namespace と name で特定される属性を返します。

...namespace と name で特定される属性を返します。

namespace で名前空間を、 name で prefix を含まない属性名を
指定します。

指定された属性が存在しない場合は nil を返します。

XML プロセッサが prefix を置き換えてしまった場合...
...@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)

//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='&lt;'/>
</root>
EOS
a
=...
...ements("/root/a").first

a
.attributes.get_attribute_ns("", "att") # => att='&lt;'
a
.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a
.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a
.attributes.get_attribute_ns("http://example.org/foo", "attt") #...

絞り込み条件を変える

REXML::Attributes#get_attribute(name) -> Attribute | nil (9249.0)

name という名前の属性を取得します。

...name という名前の属性を取得します。

name という名前を持つ属性がない場合は nil を返します。

@param name 属性名(文字列)
@see REXML::Attributes#[]

//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='&lt;'/>
</root>
EOS
a
= doc.get_elements("/root/a").first

a
.attributes.get_attribute("att") # => att='&lt;'
a
.attributes.get_attribute("foo:att") # => foo:att='1'
//}...

REXML::Attributes#each_attribute {|attribute| ... } -> () (9143.0)

各属性に対しブロックを呼び出します。

...L::Attribute オブジェクトで渡されます。

//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='&lt;'/>
</root>
EOS
a
= doc.get_elements("/root/a")....
...first

a
.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}...

Pathname#root? -> bool (9114.0)

self がルートディレクトリであれば真を返します。判断は文字列操作によっ て行われ、ファイルシステムはアクセスされません。

...self がルートディレクトリであれば真を返します。判断は文字列操作によっ
て行われ、ファイルシステムはアクセスされません。

//emlist[例][ruby]{
require 'pathname'

Pathname('/').root? # => true
Pathname('/im/sure').root? # => false
//}...

Net::IMAP::MailboxQuotaRoot#mailbox -> String (9101.0)

問い合わせしたメールボックスの名前を返します。

問い合わせしたメールボックスの名前を返します。
<< 1 2 3 ... > >>