1104件ヒット
[1-100件を表示]
(0.124秒)
ライブラリ
- json (12)
- psych (132)
-
rdoc
/ code _ object (48) -
rdoc
/ markdown (12) -
rdoc
/ rdoc (12) -
rdoc
/ text (12) -
rexml
/ document (780) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (24) - win32ole (12)
クラス
-
JSON
:: State (12) - Object (24)
-
Psych
:: Handler (24) -
Psych
:: Nodes :: Document (24) -
Psych
:: Nodes :: Node (24) -
Psych
:: Stream (36) -
RDoc
:: CodeObject (48) -
RDoc
:: Markdown (12) -
RDoc
:: RDoc (12) -
REXML
:: Attribute (36) -
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: Child (24) -
REXML
:: DocType (72) -
REXML
:: Document (72) -
REXML
:: Element (252) -
REXML
:: Elements (108) -
REXML
:: Instruction (12) -
REXML
:: Parsers :: SAX2Parser (60) -
REXML
:: Text (24) -
WIN32OLE
_ EVENT (12)
モジュール
-
RDoc
:: Text (12) -
REXML
:: SAX2Listener (24)
キーワード
- << (12)
- [] (24)
- []= (24)
- add (24)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ namespace (12) -
document
_ children= (12) -
document
_ self= (12) - each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
end
_ document (24) - entity (12)
-
external
_ id (12) - finish (12)
- generate (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - handler= (12)
-
has
_ elements? (12) - length (12)
- listen (60)
- name (24)
- namespace (24)
- namespaces (24)
-
next
_ element (12) -
next
_ sibling= (12) - parse (24)
- prefix (12)
- prefixes (24)
-
previous
_ sibling= (12) -
psych
_ to _ yaml (12) -
remove
_ classes _ and _ modules (12) - size (24)
-
stand
_ alone? (12) - start (24)
-
start
_ doc (12) -
start
_ document (24) -
tag
_ directives (12) -
tag
_ directives= (12) - target (12)
- text (12)
- text= (12)
-
to
_ a (24) -
to
_ s (12) -
to
_ string (12) -
to
_ yaml (24) - value (24)
- value= (12)
- write (36)
- xpath (12)
- yaml (12)
検索結果
先頭5件
-
RDoc
:: RDoc # document(argv) -> nil (18202.0) -
argv で与えられた引数を元にドキュメントをフォーマットして指定されたディ レクトリに出力します。
...
argv で与えられた引数を元にドキュメントをフォーマットして指定されたディ
レクトリに出力します。
@param argv コマンドラインで rdoc コマンドに指定するのと同じ引数を文字
列の配列で指定します。
@raise RDoc::Er......ror ドキュメントの処理中にエラーがあった場合に発生します。
指定できるオプションについては、lib:rdoc#usage を参照してくださ
い。出力ディレクトリが指定されなかった場合はカレントディレクトリ の
doc 以下に出力し... -
Psych
:: Handler # start _ document(version , tag _ directives , implicit) -> () (12214.0) -
YAML ドキュメントの始まりで呼び出されます。
...YAML ドキュメントの始まりで呼び出されます。
version には YAML ドキュメントに宣言されているバージョンが
[major, minor] という配列で渡されます。宣言がない場合は空の配列が渡されます。
tag_directives には tag directive の配......tag は [prefix, suffix] という配列で表現されます。
implicit にはドキュメントが implicit に始まっているかどうかが
真偽値で渡されます。
必要に応じてこのメソッドを override してください。
@param version バージョン
@param tag_dir......ectives tag directive の配列
@param implicit ドキュメントが implicit に始まっているかどうか
=== 例
以下の YAML に対しては
%YAML 1.1
%TAG ! tag:tenderlovemaking.com,2009:
--- !squee
start_document に渡される引数は以下の通りです
version #... -
REXML
:: SAX2Listener # start _ document -> () (12202.0) -
ドキュメントの先頭で呼び出されるコールバックメソッドです。
ドキュメントの先頭で呼び出されるコールバックメソッドです。 -
RDoc
:: Markdown # parse(markdown) -> RDoc :: Markup :: Document (9418.0) -
引数 markdown で指定したドキュメントを解析して RDoc::Markup::Document オブジェクトを返します。
...引数 markdown で指定したドキュメントを解析して
RDoc::Markup::Document オブジェクトを返します。
@param markdown 解析の対象になるドキュメントを文字列で指定します。... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9255.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='2' att='<'/>
</root>
EOS
a =......nts("/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", "attt") # =>... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9243.0) -
name という名前の属性を取得します。
...name という名前の属性を取得します。
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='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
Psych
:: Nodes :: Document # tag _ directives=(tags) (9213.0) -
tag directive の配列を設定します。
...tag directive の配列を設定します。
@param tags 設定する tag directive の配列
@see Psych::Nodes::Document#tag_directives,
Psych::Nodes::Document.new... -
JSON
:: State # generate(obj) -> String (9165.0) -
Generates a valid JSON document from object obj and returns the result. If no valid JSON document can be created this method raises a GeneratorError exception.
...Generates a valid JSON document from object obj and returns the
result. If no valid JSON document can be created this method raises a
GeneratorError exception.... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9137.0) -
各属性に対しブロックを呼び出します。
...L::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", "<"]
//}...