るりまサーチ

最速Rubyリファレンスマニュアル検索!
1173件ヒット [101-200件を表示] (0.015秒)

別のキーワード

  1. _builtin names
  2. rake names
  3. regexp names
  4. rake arg_names
  5. encoding names

モジュール

オブジェクト

検索結果

<< < 1 2 3 4 ... > >>

Gem::Specification.attribute_names -> Array (6101.0)

属性名の配列を返します。

属性名の配列を返します。

Rake::Task#arg_names -> Array (6101.0)

自身のパラメータ名のリストを返します。

自身のパラメータ名のリストを返します。

Rake::Task#set_arg_names(args) (6101.0)

自身のパラメータの名前のリストをセットします。

自身のパラメータの名前のリストをセットします。

@param args シンボルのリストを指定します。

RubyVM::INSTRUCTION_NAMES -> [String] (6101.0)

RubyVM の命令シーケンスの名前の一覧を返します。

RubyVM の命令シーケンスの名前の一覧を返します。

@see RubyVM::InstructionSequence

REXML::Attribute#namespace(arg = nil) -> String | nil (6100.0)

属性の名前空間の 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 } (6100.0)

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

...p://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 (6100.0)

nil を返します。

nil を返します。

REXML::Element#add_namespace(prefix, uri) -> self (6100.0)

名前空間を要素に追加します。

...ォルトの namespace の uri を指定します。

既に同じ prefix が存在する場合はそれが上書きされます。

@param prefix 名前空間の prefix
@param uri 名前空間の uri

//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo"...
..., "bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
a.add_namespace("foo", "baz")
a.to_s # => "<a xmlns:foo='baz' xmlns='twiddle'/>"
//}...

REXML::Element#add_namespace(uri) (6100.0)

名前空間を要素に追加します。

...ォルトの namespace の uri を指定します。

既に同じ prefix が存在する場合はそれが上書きされます。

@param prefix 名前空間の prefix
@param uri 名前空間の uri

//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo"...
..., "bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
a.add_namespace("foo", "baz")
a.to_s # => "<a xmlns:foo='baz' xmlns='twiddle'/>"
//}...
<< < 1 2 3 4 ... > >>