るりまサーチ

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

別のキーワード

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

検索結果

<< 1 2 3 ... > >>

Regexp#names -> [String] (27220.0)

正規表現に含まれる名前付きキャプチャ(named capture)の名前を 文字列の配列で返します。

...正規表現に含まれる名前付きキャプチャ(named capture)の名前を
文字列の配列で返します。

//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.names

# => ["foo", "bar", "baz"]
/(?<foo>.)(?<foo>.)/.names
# => ["foo"]

/(.)(.)/.names
# => []
//}...

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

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

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

REXML::Namespace#expanded_name -> String (21224.0)

REXML::Namespace#name= で設定された名前を返します。

...REXML::Namespace#name= で設定された名前を返します。

name
= で指定した名前が prefix を含んでいれば
p
refix を含む名前を返し、そうでなければ
p
refix を含まない名前を返します。

@see REXML::Namespace#prefix...

REXML::Namespace#fully_expanded_name -> String (21202.0)

完全修飾名を返します。

完全修飾名を返します。

Kernel#namespace(name = nil) { ... } -> Rake::NameSpace (18702.0)

新しい名前空間を作成します。

...新しい名前空間を作成します。

与えられたブロックを評価する間は、その名前空間を使用します。

例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.

@see Rake::TaskManager#in_namespace...

絞り込み条件を変える

Rake::TaskManager#in_namespace(name) {|name_space| ... } -> Array (18609.0)

与えられた名前の名前空間でブロックを評価します。

...クを評価します。

@param name 名前を指定します。

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

task default: :test_rake_app

names
pace :sample do
def hoge
p
uts "hoge"
end
end

task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"...

REXML::Element#delete_namespace(namespace = "xmlns") -> self (18601.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::Attribute#namespace(arg = nil) -> String | nil (18313.0)

属性の名前空間の URI を返します。

...@param arg この値を指定すると、その属性の名前空間でなく、arg という名前空間
の 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 # => "http://www.example.com/ns"
//}...

REXML::Attributes#namespaces -> { String => String } (18313.0)

self の中で宣言されている名前空間の集合を返します。

...します。

返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。

//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

p
doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p
a.attributes.namespaces
# => {}
//}...

REXML::DocType#namespaces -> nil (18301.0)

nil を返します。

nil を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>