75件ヒット
[1-75件を表示]
(0.026秒)
別のキーワード
キーワード
- rdoc (12)
-
rdoc
/ parser / c (12) -
rdoc
/ parser / changelog (12) - rexml (12)
-
rexml
/ document (12) -
rexml
/ parsers / sax2parser (12) - xmlrpc (3)
検索結果
-
rexml
/ document (6019.0) -
DOM スタイルの XML パーサ。
...REXML::Document.new で XML 文書から DOM ツリーを
構築し、ツリーのノードの各メソッドで文書の内容にアクセスします。
以下のプログラムではブックマークの XML からデータを取り出します。
//emlist[][ruby]{
require 'rexml/document'
requ......ire '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の公式サイト... -
rdoc
/ parser / c (25.0) -
C 言語で記述されたソースコードから組み込みクラス/モジュールのドキュメン トを解析するためのサブライブラリです。
...必要があります。
また、Ruby のソースコードとは別にコメントには特別な命令を指定する事がで
きます。
: Document-class: name
記述する内容を name で指定した Ruby のクラスのものに指定します。同じ
.c ファイルに複数のク......ス定義がある場合などのように、Init_xxx 関数の
xxx の部分がクラス名と同一ではない場合に使用します。
: Document-method: name
記述する内容を name で指定した Ruby のメソッドのものに指定します。
RDoc が対応するメソッド......行います。
rb_define_method(....); // in ファイル名
例:
/*
* Document-class: MyClass
*
* Encapsulate the writing and reading of the configuration
* file. ...
*/
/*
* Document-method: read_value
*
* call-seq:
* cfg.read_value(key) -> va... -
rdoc (13.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...markdown、rd、rdoc、tomdoc のいずれかから選択できます。
: --root root
Root of the source tree documentation will be generated for. Set this
when building documentation outside the source directory. Default is
the current directory.
: --page-dir dir
Directory where guid......ます。=begin/=end を使う場合は、
以下のように =begin の行に 'rdoc' タグを付ける必要があります。
=begin rdoc
Documentation to
be processed by RDoc.
=end
パラグラフは左のインデントを揃えたテキストのかたまりで構成されます。そ......れます。
//emlist{
{ruby-lang.org}[www.ruby-lang.org]
//}
: クラスやメソッド
\RDoc::RDoc#document は以下のように変換されます。
//emlist{
RDoc::RDoc#document
//}
: タグ内のエスケープ無視(S クラスは定義済み)
<tt>\S</tt> は以下のように... -
rexml
/ parsers / sax2parser (13.0) -
SAX2 と同等の API を持つストリーム式の XML パーサ。
...include_private)
name != :call
end
end
parser = REXML::Parsers::SAX2Parser.new(xml)
parser.listen(Listener.new)
parser.parse
# >> [:start_document]
# >> [:xmldecl, "1.0", "UTF-8", nil]
# >> [:progress, 39]
# >> [:characters, "\n"]
# >> [:progress, 91]
# >> [:processing_instruction, "xml-styl......barbarbarbar\n"]
# >> [:progress, 683]
# >> [:end_element, "http://example.org/default", "root", "root"]
# >> [:end_prefix_mapping, nil]
# >> [:end_prefix_mapping, "foo"]
# >> [:end_prefix_mapping, "bar"]
# >> [:progress, 683]
# >> [:characters, "\n"]
# >> [:progress, 683]
# >> [:end_document]
//}... -
rdoc
/ parser / changelog (7.0) -
ChangeLog ファイルを解析するためのサブライブラリです。
...ChangeLog ファイルを解析するためのサブライブラリです。
ChangeLog ファイルを解析して、RDoc::Markup::Document オブジェクト
に変換します。出力される HTML はサイドバーに日ごとに分けられます。
このサブライブラリは主に MRI... -
rexml (7.0)
-
Pure Ruby の XML パーサです。 DOM スタイルと SAX スタイルの両方をカバーしています。
...ーサです。
DOM スタイルと SAX スタイルの両方をカバーしています。
DOM スタイルの API を使うためには rexml/document を使います。
SAX スタイルの API には、
* rexml/parsers/sax2parser
* rexml/parsers/streamparser
のいずれかを用います... -
xmlrpc (7.0)
-
XML-RPC を扱うためのライブラリです。
...ions that span
computer languages. Its distinctive feature is its simplicity compared to
other approaches like SOAP and CORBA.
The Ruby standard library package 'xmlrpc' enables you to create a server that
implements remote procedures and a client that calls them. Very little code
is required to......r = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php")
result = server.call("sample.sumAndDifference", 5, 3)
pp result
=== Documentation
See http://www.ntecs.de/projects/xmlrpc4r. There is plenty of detail there to
use the client and implement a server.
=== Features of XML......# ...
Note that XMLStreamParser is incredible faster (and uses less memory) than any
other parser and scales well for large documents. For example for a 0.5 MB XML
document with many tags, XMLStreamParser is ~350 (!) times faster than
NQXMLTreeParser and still ~18 times as fast as XMLTreeParser....