るりまサーチ

最速Rubyリファレンスマニュアル検索!
70件ヒット [1-70件を表示] (0.085秒)
トップページ > クエリ:-[x] > クエリ:Set[x] > 種類:ライブラリ[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

キーワード

検索結果

rdoc (277.0)

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。

...れば、'rdoc' コマンドでドキュメントが生成できます。
(Windows では 'rdoc.bat' です)

$ rdoc [options] [names...]

"rdoc --help" と打てば、最新のオプションに関する情報が得られます。

$ rdoc

このコマンドでカレントディレクトリ以...
...とができます。
例えば、Rdoc そのもののドキュメントを生成する場合は、以下のようにタイプ
します。

$ rdoc --main rdoc/rdoc.rb

RDoc が生成するドキュメントのコメント部で使える様々なマークアップの方法
は以下の markup の...
...され
ます。末尾が .c であるファイルはCのソースとして処理されます。それ以外の
ファイルは単なる SimpleMarkup-style で記述されたファイルとして処理され
ます(行の先頭に「#」というコメント記号があってもなくても同じよ...

xmlrpc (143.0)

XML-RPC を扱うためのライブラリです。

...XML-RPC を扱うためのライブラリです。

このページは xmlrpc ライブラリのまとめのページであり、require 'xmlrpc' を実行しても
エラーになることに注意して下さい。

=== Author and Copyright

Copyright (C) 2001-2004 by Michael Neumann

Released und...
...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...
...server = 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.

=== Feature...

test/unit (127.0)

ユニットテストを行うためのライブラリです。

...なりまし
た。詳しい内容は下記のプロジェクトページを参照してください。

* Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/

なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実...
...メソッドが実行される前には setup メソッドが必ず
呼ばれます。実行されたあとには、teardown メソッドが必ず呼ばれます。

require 'test/unit'
require 'foo'

class TC_Foo < Test::Unit::TestCase
def setup
@obj = Foo.new
end...
...ed at -j option
-
q, --hide-skip Hide skipped tests
-
b, --basedir=DIR Base directory of test suites.
-
x, --exclude PATTERN Exclude test files on pattern.
-
Idirectory Add library load path
-
-[no-]gc-stres...

net/http (91.0)

汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。

...{'from'=>'2005-01-01', 'to'=>'2005-03-31'})
puts res.body

#例3: より細かく制御する
url = URI.parse('http://www.example.com/todo.cgi')
req = Net::HTTP::Post.new(url.path)
req.basic_auth 'jack', 'pass'
req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'})
res = Net::HTTP.n...
...t_response(URI.parse(uri_str))
case response
when Net::HTTPSuccess
response
when Net::HTTPRedirection
fetch(response['location'], limit - 1)
else
response.value
end
end

print fetch('http://www.example.org')
//}

より詳しくは Net::HTTPResponse、 Net::HTTPSuccess、
Net::...
....com') {|http|
req = Net::HTTP::Get.new('/secret-page.html')
req.basic_auth 'account', 'password'
response = http.request(req)
print response.body
}
//}





=== フォームの値の区切り文字について

POSTで application/x-www-form-urlencoded として複数のフォームの値...

rss (73.0)

RSS を扱うためのライブラリです。

...す。

=== 参考

* RSS 0.91 http://backend.userland.com/rss091
* RSS 1.0 http://purl.org/rss/1.0/spec
* RSS 2.0 http://www.rssboard.org/rss-specification
* Atom 1.0 https://www.ietf.org/rfc/rfc4287.txt

=== 注意

RSS ParserはRSS 0.9x/1.0/2.0, Atom 1.0 をサポートしています...
...s = RSS::Parser.parse(rss_source)
item = RSS::RDF::Item.new(rdf_about_value)
rss.items << item
rss.items.last == item # => true

注意: item=/set_itemなどはRubyっぽくないので使わないでくださ
い.

=== 出力

RSS Parserといっているので誤解されがちですが,...
...を作成する

* 出力エンコーディングを指定する(省略可)

* RSSオブジェクトのto_sメソッドを呼ぶ

==== xml-stylesheet

xml-stylesheetも出力することができます.

RSSのルート要素(RSS::RDFまたはRSS::Rss)オブジェ
クトおよびAtomのル...

絞り込み条件を変える

getoptlong (49.0)

getoptlong は、GNU の getopt_long() とまったく同じ方式でコマンド 行オプションの解析を行う Ruby のライブラリです。

...ョンは `-' の代わりに `--' で始まります (例: `--version')。
* 長いオプションは、一意に定まる限り後方を省略することができます
(例: `--version' は、`--ver' と略すことができます。ただし、他のオプ
ション名が `--ver' で始...
...まらない場合に限ります)。
* 特殊な引数 `--' によって、オプションの解析を強制的に終了します。


=== 順序形式 (ordering)

GNU getopt_long() および getoptlong.rb には、`REQUIRE_ORDER',
`PERMUTE', `RETURN_IN_ORDER' という、3 つの「順序形式...
...とします。

Usage: command [option...]
Options:
-
m SIZE --max-size SIZE Set maximum size
-
q --quiet --silence Suppress all warnings
-
-help Output this help, then exit
-
-version Output version number, then exit...

rubygems/commands/generate_index_command (43.0)

ある Gem サーバに対するインデックスを作成するためのライブラリです。

...s]
Options:
-
d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-
h, --help このコマンドのヘルプを表示します
-
V, --[no-]verbose 表示を詳細にします
-
q, --quiet...
...静かに実行します
-
-config-file FILE 指定された設定ファイルを使用します
-
-backtrace バックトレースを表示します
-
-debug Ruby 自体のデバッグオプションを有効に...
...y
Description:
The generate_index command creates a set of indexes for serving gems
statically. The command expects a 'gems' directory under the path given to
the --directory option. When done, it will generate a set of files like
this:

gems/...

tracer (13.0)

実行トレース出力をとる機能を提供します。

...下のようにコマンドラインから Kernel.#require する方法です。
hoge.rb の実行をすべてトレース出力します。

ruby -rtracer hoge.rb

もうひとつはソースからrequireする方法です。

require 'tracer'

とした後

Tracer.on

によりトレース...
...class Hoge
def Hoge.fuga(i)
"fuga #{i}"
end
end

Tracer.add_filter {|event, file, line, id, binding, klass|
event =~ /line/ and klass.to_s =~ /hoge/i
}
Tracer.on
for i in 0..3
puts Hoge.fuga(i) if i % 3 == 0
end
Tracer.off

=== SEE ALSO

Kernel.#set_trace_func...