1092件ヒット
[1-100件を表示]
(0.070秒)
種類
- インスタンスメソッド (888)
- 特異メソッド (120)
- クラス (60)
- モジュール (12)
- ライブラリ (12)
ライブラリ
-
cgi
/ html (252) - json (12)
- openssl (156)
-
rdoc
/ context (12) -
rdoc
/ markup (12) -
rexml
/ document (540) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) -
rubygems
/ specification (48) - uri (24)
クラス
-
Gem
:: Specification (48) -
JSON
:: State (12) -
OpenSSL
:: X509 :: Attribute (84) -
OpenSSL
:: X509 :: Request (36) -
RDoc
:: Context (12) -
RDoc
:: Markup (12) -
REXML
:: Attribute (192) -
REXML
:: Attributes (192) -
REXML
:: DocType (24) -
REXML
:: Element (96) -
URI
:: LDAP (24)
モジュール
-
CGI
:: HtmlExtension (252) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
- << (12)
- == (12)
- AttributeError (12)
- Attributes (12)
- Namespace (12)
- Request (12)
- [] (12)
- []= (24)
- add (12)
-
add
_ attribute (36) -
add
_ attributes (12) - attlistdecl (12)
- attribute (12)
-
attribute
_ alias _ singular (12) -
attribute
_ defaults (12) -
attribute
_ of (12) - attributes (36)
- attributes= (24)
-
attributes
_ of (12) - checkbox (12)
-
checkbox
_ group (12) - clone (12)
- delete (12)
-
delete
_ all (12) -
delete
_ attribute (12) - each (12)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) - element (12)
- element= (12)
-
file
_ field (12) -
find
_ local _ symbol (12) - form (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
has
_ attributes? (12) - hidden (12)
- html (24)
- img (12)
- length (12)
-
multipart
_ form (24) - namespace (12)
- namespaces (12)
- new (72)
-
node
_ type (12) - normalized= (12)
- oid (12)
- oid= (12)
-
password
_ field (12) - prefix (12)
- prefixes (12)
-
radio
_ group (12) - remove (12)
-
required
_ attribute (12) -
required
_ attribute? (12) - reset (12)
-
rexml
/ document (12) -
scrolling
_ list (12) - size (12)
-
start
_ element (12) - submit (12)
-
text
_ field (12) - textarea (12)
-
to
_ a (12) -
to
_ der (12) -
to
_ s (12) -
to
_ string (12) - value (24)
- value= (12)
- write (12)
- xpath (12)
検索結果
先頭5件
-
OpenSSL
:: X509 :: Attribute (21022.0) -
X.509 証明書署名要求の attribute を表すクラスです。
...X.509 証明書署名要求の attribute を表すクラスです。
OpenSSL::X509::Request#attributes で取り出すことや、
OpenSSL::X509::Request#add_attribute で追加することができます。... -
REXML
:: Attribute (21012.0) -
要素(REXML::Element)の属性を表すクラスです。
...要素(REXML::Element)の属性を表すクラスです。
つまり、 <element attribute="value"/> という
要素における attribute=value というペアのことです。
属性にはなんらかの名前空間(namespace, REXML::Namespace)
に属することができます。... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (12326.0) -
namespace と name で特定される属性を返します。
...場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{......'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.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.ge......t_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 # delete _ attribute(key) -> REXML :: Attribute | nil (12326.0) -
要素から key という属性名の属性を削除します。
...il を返します。
@param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E x='foo' y:x='bar'/>
e.del......ete_attribute("x"); e # => <E y:x='bar'/>
//}... -
REXML
:: Element # each _ element _ with _ attribute(key , value = nil , max = 0 , name = nil) {|element| . . . } -> () (12325.0) -
特定の属性を持つすべての子要素を引数としてブロックを呼び出します。
...を呼び出します。
key で指定した属性名の属性を持つ要素のみを対象とします。
value を指定すると、keyで指定した属性名を持つ属性の値がvalueである
もののみを対象とします。
maxを指定すると、対象となる子要素の先頭 max......)
@param value 属性値(文字列)
@param max ブロック呼出の対象とする子要素の最大個数
@param name xpath文字列
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a><b id='1'/><c id='2'/><d id='1'/><e/></a>")
doc.root.each_element_with_attribute('id'){|e|......d='1'/>
# >> <c id='2'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1'){|e| p e }
# >> <b id='1'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1', 1){|e| p e }
# >> <b id='1'/>
doc.root.each_element_with_attribute('id', '1', 0, 'd'){|e| p e }
# >> <d id='1'/>
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (12314.0) -
name という名前の属性を取得します。
...合は nil を返します。
@param name 属性名(文字列)
@see REXML::Attributes#[]
//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='<'/>
</roo......t>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (12214.0) -
各属性に対しブロックを呼び出します。
...は REXML::Attribute オブジェクトで渡されます。
//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("/r......oot/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (12207.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
...うに定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'
@param singular 属性名の単数形を指定します。
@param plural 属性名の複数... -
Gem
:: Specification . attribute _ defaults -> Array (12201.0) -
@todo
...@todo
@@attributes の複製を返します。...