るりまサーチ

最速Rubyリファレンスマニュアル検索!
96件ヒット [1-96件を表示] (0.025秒)
トップページ > クエリ:http[x] > クエリ:namespace[x]

別のキーワード

  1. net/http get
  2. http start
  3. http get
  4. net/http start
  5. net/http delete

ライブラリ

キーワード

検索結果

REXML::Attribute#namespace(arg = nil) -> String | nil (18119.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 } (6124.0)

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

...: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::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (159.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 (131.0)

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

...きます。

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

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

@param name 属性名(文字列)
@param namespace 名前空間...
...ML::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.a...

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

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

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

絞り込み条件を変える

ruby 1.8.4 feature (24.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...Iconv>))
* ((<ruby 1.8.4 feature/WEBrick::Config::FileHandler [compat]>))
* ((<ruby 1.8.4 feature/WEBrick>))
* ((<ruby 1.8.4 feature/WEBrick::HTTPRequest#query_string= [new]>))
* ((<ruby 1.8.4 feature/Readline [bug]>))
* ((<ruby 1.8.4 feature/Syck [bug]>))
* ((<ruby 1.8.4 feature/irb [bu...
...子にinteger overflowのバグがありました。
perl のそれとは違い、セキュリティバグはないそうです。
((<URL:http://www.rubyist.net/~matz/20051207.html#p01>))

# ruby 1.8.4 (2005-12-01) [i686-linux]

# ArgumentError
printf("%2147483648$d\n...
...きませんので,ご注意ください。

# * ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces.
#
# * ext/tk/lib/tk/namespace.rb: ditto.
#

Tcl/Tk 上の namespace の扱いが正常に行えないというバグを修正しました.

#Wed Nov 2 20:14:53 2005 Hidet...

REXML::Attributes#each {|name, value| ... } -> () (18.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='&...

Ruby用語集 (12.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...的には残されたが単なる Integer のエイリアスとなった。

: blade
Ruby の各種メーリングリストのアーカイブ。

http
://blade.nagaokaut.ac.jp/ruby/

: bundled gem
標準添付ライブラリーの gem のうち、アンインストールできるもの。...
...ェクト指向プログラミング言語。
型推論を持った静的型付け言語であり、処理系はコンパイラーである。

http
s://ja.crystal-lang.org/

: CSI 方式
CSI は Code Set Independent の頭字語。
プログラミング言語の処理系が文字列を扱う...
...クラス定義、メソッド定義の外側である。

トップレベルでは main が self となる。

===[a:na] な

: 名前空間
: namespace
メソッドや定数の名前の衝突を避ける仕組み。
クラスやモジュールは一つの名前空間を作る。

: 名前重...