324件ヒット
[1-100件を表示]
(0.104秒)
ライブラリ
-
cgi
/ html (216) -
rdoc
/ context (12) -
rexml
/ document (60) -
rexml
/ streamlistener (12) - uri (24)
クラス
-
RDoc
:: Context (12) -
REXML
:: Attributes (36) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
URI
:: LDAP (24)
モジュール
-
CGI
:: HtmlExtension (216) -
REXML
:: StreamListener (12)
キーワード
- add (12)
-
add
_ attributes (12) - attlistdecl (12)
- attributes= (12)
-
attributes
_ of (12) - checkbox (12)
- delete (12)
-
delete
_ all (12) -
file
_ field (24) - form (24)
- hidden (24)
- img (12)
-
multipart
_ form (24) -
password
_ field (24) -
radio
_ group (24) -
text
_ field (24)
検索結果
先頭5件
-
RDoc
:: Context # attributes -> [RDoc :: Attr] (21202.0) -
追加された RDoc::Attr の配列を返します。
...追加された RDoc::Attr の配列を返します。... -
URI
:: LDAP # attributes -> String (21102.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
REXML
:: Element # add _ attributes(attrs) -> () (12238.0) -
要素の属性を複数追加します。 同じ名前の属性がすでにある場合はその属性を新しい 属性で置き換えます。
...属性の属性名と属性値の対の集合(Array or Hash)
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("e")
e.add_attributes({"a" => "b", "c" => "d"})
e # => <e a='b' c='d'/>
e = REXML::Element.new("e")
e.add_attributes([["a", "b"], ["c", "d"]])
e # => <e a='b' c='d'/>
//}... -
REXML
:: Attributes # delete(attribute) -> REXML :: Element (9125.0) -
指定した属性を取り除きます。
...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.delete("att") # => <a foo:att='1' bar:att='2'/>
a.attributes.d......elete("foo:att") # => <a bar:att='2'/>
attr = a.attributes.get_attribute("bar:att")
a.attributes.delete(attr) # => <a/>
//}... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (9120.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::At......e 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("boo......k")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (9107.0) -
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='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.delete_all("att") # => [att='<... -
URI
:: LDAP # attributes=(s) (9102.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。 -
REXML
:: StreamListener # attlistdecl(element _ name , attributes , raw _ content) -> () (6214.0) -
DTDの属性リスト宣言をパースしたときに呼び出されるコールバックです。
...DTDの属性リスト宣言をパースしたときに呼び出されるコールバックです。
@param element_name 要素名が文字列で渡されます
@param attributes 属性名とそのデフォルト値の対応が
{ 属性名文字列 => デフォルト値文字列(無ければnil......ま渡されます
=== 例
<!ATTLIST a att CDATA #REQUIRED xyz CDATA "foobar">
という属性リスト宣言に対しては
element_name: "a"
attributes: {"att"=>nil, "xyz"=>"foobar"}
raw_content: " \n<!ATTLIST a att CDATA #REQUIRED xyz CDATA \"foobar\">"
という引数が渡されます... -
CGI
:: HtmlExtension # file _ field(attributes) -> String (6208.0) -
タイプが file である input 要素を生成します。
...タイプが file である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
file_field({ "NAME" => "name", "SIZE" => 40 })
# <INPUT TYPE="file" NAME="name" SIZE="40">...