132件ヒット
[1-100件を表示]
(0.123秒)
ライブラリ
- getoptlong (12)
-
net
/ http (36) - optparse (12)
-
rake
/ packagetask (36) -
rexml
/ document (12) - rubygems (12)
-
rubygems
/ commands / unpack _ command (12)
クラス
-
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: LoadError (12) - GetoptLong (12)
-
Net
:: HTTP (24) -
Net
:: HTTPResponse (12) -
REXML
:: Instruction (12) -
Rake
:: PackageTask (36)
モジュール
キーワード
-
get
_ path (12) - getopts (12)
-
http
_ version (12) - init (12)
- target (12)
- version= (12)
-
version
_ requirement (12)
検索結果
先頭5件
- Rake
:: PackageTask # version -> String - Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse - Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - Rake
:: PackageTask # version=(str) - Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil
-
Rake
:: PackageTask # version -> String (21102.0) -
作成するパッケージのバージョンを表す文字列を返します。
作成するパッケージのバージョンを表す文字列を返します。 -
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (18151.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...[ruby]{
# net/http version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) d......o |str|
f.write str
end
}
//}
@see Net::HTTP#request_get... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (18151.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...[ruby]{
# net/http version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) d......o |str|
f.write str
end
}
//}
@see Net::HTTP#request_get... -
Rake
:: PackageTask # version=(str) (9102.0) -
作成するパッケージのバージョンをセットします。
作成するパッケージのバージョンをセットします。
@param str バージョンを表す文字列を指定します。 -
Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil (6209.0) -
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
...引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
@param gemname Gem パッケージの名前を指定します。
@param version_req バージョンの満たすべき条件を文字列で指定します。... -
Gem
:: LoadError # version _ requirement -> Get :: Requirement (6209.0) -
ロードに失敗した Gem の必要条件を返します。
...ロードに失敗した Gem の必要条件を返します。
@see Gem::Requirement, Gem::Dependency#version_requirements... -
Net
:: HTTPResponse # http _ version -> String (6114.0) -
サーバがサポートしている HTTP のバージョンを文字列で返します。
...サーバがサポートしている HTTP のバージョンを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}... -
OptionParser
:: Arguable # getopts(short _ opt , *long _ opt) -> Hash (6107.0) -
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
...オプションが引数をとる場合は直後に ":" を付けます。
@param long_opt ロングネームのオプション(--version や --bufsize=512)を文字列で指定をします。
オプションが引数をとる場合は後ろに ":" を付けます。......r::ParseError のサブク
ラスの例外になります。
//emlist[t.rb][ruby]{
require 'optparse'
params = ARGV.getopts("ab:", "foo", "bar:", "bufsize:1024")
p params
//}
# 実行結果
$ ruby t.rb -b 1 --foo --bar xxx -- -a
{"bufsize"=>"1024", "a"=>false, "... -
REXML
:: Instruction # target -> String (6107.0) -
XML 処理命令のターゲットを返します。
...t[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style...