ライブラリ
- ビルトイン (365)
- date (4)
-
irb
/ cmd / help (12) - json (72)
- psych (34)
- rake (156)
- resolv (48)
- rexml (12)
-
rexml
/ document (264) -
rubygems
/ command (12) -
rubygems
/ command _ manager (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ specification (36) -
shell
/ builtin-command (6) - socket (24)
-
webrick
/ config (12)
クラス
- Data (3)
- Date (2)
- DateTime (2)
- Encoding (12)
-
Gem
:: Command (12) -
Gem
:: CommandManager (12) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Specification (36) -
IRB
:: ExtendCommand :: Help (12) - MatchData (26)
- Module (204)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: DocType (12) -
REXML
:: Element (72) -
REXML
:: XPath (36) -
Rake
:: FileList (12) -
Rake
:: NameSpace (36) -
Rake
:: Task (24) -
Rake
:: TaskArguments (36) - Regexp (12)
- Resolv (24)
-
Resolv
:: DNS (12) -
Resolv
:: Hosts (12) - RubyVM (12)
-
Shell
:: Cat (6) - Socket (12)
- Struct (6)
- Time (2)
モジュール
- JSON (60)
- Kernel (36)
- ObjectSpace (48)
- Psych (34)
-
REXML
:: Namespace (96) -
Rake
:: TaskManager (12) -
Socket
:: Constants (12) -
WEBrick
:: Config (12)
オブジェクト
- main (40)
キーワード
- DigestAuth (12)
-
IF
_ NAMESIZE (24) -
INSTRUCTION
_ NAMES (12) - JSON (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NameSpace (12)
- Namespace (12)
- UndefinedNamespaceException (12)
- [] (24)
-
add
_ namespace (24) -
arg
_ names (12) - attribute (12)
-
attribute
_ names (12) - cgi (12)
-
command
_ names (12) -
deconstruct
_ keys (17) -
delete
_ namespace (12) - each (12)
-
each
_ object (48) - execute (12)
- first (12)
-
get
_ all _ gem _ names (12) -
get
_ attribute _ ns (12) - getnames (48)
-
has
_ name? (12) - import (12)
-
in
_ namespace (12) - include (12)
- irb (12)
- load (27)
-
local
_ name (12) - match (12)
- name (12)
- name= (12)
-
named
_ captures (12) - namespace (36)
- namespaces (36)
- new (30)
-
new
_ scope (12) - parse (12)
- parse! (12)
- prefix (12)
- prefix= (12)
- private (68)
-
private
_ class _ method (24) - protected (48)
- public (68)
-
public
_ class _ method (24) -
rake
/ classic _ namespace (12) - rdoc (12)
-
read
_ only (12) - restore (12)
-
ruby2
_ keywords (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / search _ command (12) -
safe
_ load (19) -
set
_ arg _ names (12) - tasks (12)
-
test
/ unit (1) -
which
_ to _ update (12)
検索結果
先頭5件
-
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='<'/>
</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'/>"
//}...