103件ヒット
[1-100件を表示]
(0.018秒)
種類
- インスタンスメソッド (84)
- ライブラリ (12)
- 文書 (7)
ライブラリ
-
rexml
/ document (48) -
rexml
/ sax2listener (12) - uri (24)
クラス
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: Element (12) -
URI
:: LDAP (24)
モジュール
-
REXML
:: SAX2Listener (12)
キーワード
-
NEWS for Ruby 2
. 6 . 0 (7) - attributes (12)
- attributes= (12)
-
get
_ attribute _ ns (12) - namespace (12)
- namespaces (12)
-
net
/ http (12) -
start
_ element (12)
検索結果
先頭5件
-
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (18244.0) -
name で指定される属性を返します。
...name で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という......空間の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='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attribute("att") # =>......att='<'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.attribute("bar:att") # => bar:att='2'
a.attribute("baz") # => nil
//}... -
URI
:: LDAP # attributes=(s) (17122.0) -
自身の Attribute を文字列で設定します。
...自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。... -
URI
:: LDAP # attributes -> String (17116.0) -
自身の Attribute を文字列で返します。
...自身の Attribute を文字列で返します。... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9232.0) -
namespace と name で特定される属性を返します。
...まった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://e.......get_elements("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
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", "at... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (3052.0) -
属性の名前空間の URI を返します。
...属性の名前空間の URI を返します。
URI が定義されていない場合は nil を返します。
@param arg この値を指定すると、その属性の名前空間でなく、arg という名前空間
の URI が返されます。
通常は省略します。
//emlis......t[][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 } (3006.0) -
self の中で宣言されている名前空間の集合を返します。
...self の中で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xm......lns: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
:: SAX2Listener # start _ element(uri , localname , qname , attributes) -> () (219.0) -
要素が開始されたときに呼び出されるコールバックメソッドです。
...要素が開始されたときに呼び出されるコールバックメソッドです。
@param uri 名前空間のURI文字列が渡されます。対応する名前空間が存在しない場合は
nil が渡されます
@param localname 接頭辞を取り除いた要素名文字列が......渡されます
@param qname 修飾名(qualified-name)文字列、つまり接頭辞を含む文字列が渡されます
@param attribute 属性が { 属性名 => 属性値文字列 } という Hash で
で渡されます。... -
net
/ http (102.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...e.com', '/index.html')
//}
//emlist[例2: URI を使う][ruby]{
require 'net/http'
require 'uri'
print Net::HTTP.get(URI.parse('http://www.example.com/index.html'))
//}
//emlist[例3: より汎用的な例][ruby]{
require 'net/http'
require 'uri'
url = URI.parse('http://www.example.com/index.html......http'
url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
//}
==== フォームの情報を送信する (POST)
//emlist[例][ruby]{
require 'net/http'
require 'uri'
#例1: PO......17.13.4 Form content types
でもそのように書かれています。
ところが、同じ HTML 4.01 Specification の
B.2.2 Ampersands in URI attribute values では、
この `&' がSGMLの文字実体参照で用いられることが指摘されており、
CGIやサーバの実装者に対... -
NEWS for Ruby 2
. 6 . 0 (24.0) -
NEWS for Ruby 2.6.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...題: 1個以上の空白が "-" の前に必要でした
* "/child::node()" の問題
* "#{FUNCTION}()/#{PATH}" の問題
* "@#{ATTRIBUTE}/parent::" の問題
* "name(#{NODE_SET})" の問題
* RSS
* 新規オプション
* RSS::Parser.parse が Hash としてオ......leased.html
* Set
* 別名
* Set#filter! が Set#select! の別名として追加されました。 13784
* URI
* 新規定数
* URI::File が file URI スキームを扱うために追加されました。 14035
=== 互換性 (機能追加とバグ修正を除く)
* Di...