るりまサーチ

最速Rubyリファレンスマニュアル検索!
312件ヒット [201-300件を表示] (0.147秒)

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. kernel p
  5. rsa p

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 4 > >>

REXML::Namespace#has_name?(other, ns = nil) -> bool (6013.0)

self が other と ns で指定した名前を持っているならば真を返します。

...を含んでいる(つまり prefix を含んでいる)場合は
REXML::Namespace#fully_expanded_name と other を比較します。
どちらでもない場合は other と REXML::Namespace#name を直接
比較します。

@param other 比較する名前(文字列)
@param ns 比較する名前...

Rake::NameSpace#[](name) -> Rake::Task (6007.0)

与えられた名前のタスクを返します。

...与えられた名前のタスクを返します。

@param name タスクの名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

namespace
:ns do |ns|
task :ts1 do
end
task :ts2 do
end

ns[:ts1] # => <Rake::Task ns:ts1 => []>
ns[:ts2] # => <Rake::Task ns:...

Rake::NameSpace#tasks -> Array (6007.0)

タスクのリストを返します。

...タスクのリストを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

namespace
:ns do |ns|
task :ts1 do
end
task :ts2 do
end

ns.tasks # => [<Rake::Task ns:ts1 => []>, <Rake::Task ns:ts2 => []>]
end
//}...

REXML::Namespace#local_name -> String (6001.0)

prefix を含まない「ローカルな」名前を返します。

...prefix を含まない「ローカルな」名前を返します。...

REXML::Namespace#name -> String (6001.0)

prefix を含まない「ローカルな」名前を返します。

...prefix を含まない「ローカルな」名前を返します。...

絞り込み条件を変える

REXML::Namespace#name=(name) (6001.0)

名前を設定します。

...名前を設定します。

p
refix を持つ名前も持たない名前も受け付けます。

@param name 名前(文字列)...

REXML::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (230.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...
...ot/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") # => nil
//}...

REXML::Element#attribute(name, namespace = nil) -> REXML::Attribute | nil (214.0)

name で指定される属性を返します。

..." のように prefix を指定することができます。

namespace
で名前空間の URI を指定することで、その名前空間内で
name という属性名を持つ属性を指定できます。

指定した属性名の属性がない場合は nil を返します。

@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='&lt;'/>
</root>
EOS
a = doc.get_elements...
...("/root/a").first
a.attribute("att") # => att='&lt;'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.attribute("bar:att") # => bar:att='2'
a.attribute("baz") # => nil
//}...

REXML::Attributes#each {|name, value| ... } -> () (13.0)

各属性の名前と値に対しブロックを呼び出します。

...を呼び出します。

名前には expanded_name(REXML::Namespace#exapnded_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 = doc.get_elements("/root/a").first

a.attributes.each do |name, value|
p
[name, value]
end

# => ["foo:att", "1"]
# => ["bar:att", "2"]
# => ["att", "<"]
//}...
<< < 1 2 3 4 > >>