1264件ヒット
[1-100件を表示]
(0.099秒)
ライブラリ
-
cgi
/ html (252) - openssl (156)
-
rdoc
/ context (60) -
rdoc
/ markup (24) -
rexml
/ document (540) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) - rss (12)
-
rubygems
/ specification (120) - uri (24)
-
webrick
/ httprequest (12)
クラス
-
Gem
:: Specification (120) -
OpenSSL
:: X509 :: Attribute (84) -
OpenSSL
:: X509 :: Request (36) -
RDoc
:: Context (60) -
RDoc
:: Markup (24) -
REXML
:: Attribute (192) -
REXML
:: Attributes (192) -
REXML
:: DocType (24) -
REXML
:: Element (96) -
URI
:: LDAP (24) -
WEBrick
:: HTTPRequest (12)
モジュール
-
CGI
:: HtmlExtension (252) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
- << (12)
- == (12)
- Attribute (24)
- AttributeError (12)
- Attributes (12)
- MissingAttributeError (12)
-
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 6 . 0 (7) - Namespace (12)
- Request (12)
- [] (12)
- []= (12)
- add (12)
-
add
_ attribute (48) -
add
_ attributes (12) -
add
_ to (12) -
array
_ attribute (12) -
array
_ attributes (12) - attlistdecl (12)
-
attribute
_ alias _ singular (12) -
attribute
_ defaults (12) -
attribute
_ manager (12) -
attribute
_ names (12) -
attribute
_ of (12) - attributes (72)
- attributes= (24)
-
attributes
_ of (12) - checkbox (12)
-
checkbox
_ group (12) - clone (12)
- delete (12)
-
delete
_ all (12) -
delete
_ attribute (12) - each (12)
-
each
_ attribute (24) -
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) -
rdoc
/ parser / ruby (12) - remove (12)
-
required
_ attribute (12) -
required
_ attribute? (12) -
required
_ attributes (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件
-
rdoc
/ parser / ruby (26006.0) -
Ruby のソースコードを解析するためのサブライブラリです。
...Ruby のソースコードを解析するためのサブライブラリです。
拡張子が .rb、.rbw のファイルを解析する事ができます。
=== メタプログラミングされたメソッド
動的に定義されたメソッドをドキュメントに含めたい場合、## で......コメントを開始します。
##
# This is a meta-programmed method!
add_my_method :meta_method, :arg1, :arg2
RDoc::Parser::Ruby は上記の :meta_method ようにメソッドの定義を行
うような識別子の後に続くトークンをメソッド名として解釈します。......:attr_reader: my_attr_name
=== 隠しメソッド、属性
:method:、 :singleton-method: や :attr: 命令を使う事で実際には定義され
ていないメソッドもドキュメントに含める事ができます。
##
# :attr_writer: ghost_writer
# There is an attribute here, bu... -
rexml
/ document (26006.0) -
DOM スタイルの XML パーサ。
...
REXML::Document.new で XML 文書から DOM ツリーを
構築し、ツリーのノードの各メソッドで文書の内容にアクセスします。
以下のプログラムではブックマークの XML からデータを取り出します。
//emlist[][ruby]{
require 'rexml/document'
re......quire 'pp'
Bookmark = Struct.new(:href, :title, :desc)
doc = REXML::Document.new(<<XML)
<?xml version="1.0" encoding="UTF-8" ?>
<xbel version="1.0">
<bookmark href="http://www.ruby-lang.org/ja/">
<title>オブジェクト指向スクリプト言語 Ruby</title>
<desc>Rubyの公式サイ......mark>
<bookmark href="https://github.com/rurema/bitclust">
<title>rurema/bitclust · GitHub</title>
</bookmark>
<bookmark href="https://rubygems.org/gems/bitclust-core" />
</xbel>
XML
bookmarks = REXML::XPath.match(doc, "/xbel/bookmark").map do |bookmark|
href = bookmark.attribute("href... -
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (24432.0) -
name で指定される属性を返します。
...name で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という......。
@param name 属性名(文字列)
@param namespace 名前空間の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
//}... -
Gem
:: Specification . attribute(name) -> () (24201.0) -
デフォルト値を指定したアクセサを定義するために使用します。
...フォルト値を指定したアクセサを定義するために使用します。
以下の副作用があります。
* クラス変数 @@attributes, @@default_value を変更します。
* 通常の属性書き込みメソッドを定義します。
* デフォルト値を持つ属性読... -
Gem
:: Specification . required _ attribute(name , default = nil) -> () (18307.0) -
必須の属性を作成します。
...必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute... -
Gem
:: Specification . required _ attribute?(name) -> bool (18301.0) -
必須属性であれば真を返します。
...必須属性であれば真を返します。
@param name 属性名を指定します。... -
Gem
:: Specification . required _ attributes -> Array (18300.0) -
必須属性のリストを返します。
必須属性のリストを返します。 -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (15426.0) -
namespace と name で特定される属性を返します。
...prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@par......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='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").fir......st
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", "attt") # => nil
//}... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (15414.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("/root....../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", "<"]
//}...