ライブラリ
- ビルトイン (297)
-
cgi
/ html (44) - csv (11)
- getoptlong (176)
-
io
/ console (11) -
irb
/ input-method (44) - mkmf (33)
-
net
/ ftp (132) -
net
/ http (649) -
net
/ imap (33) - openssl (88)
- optparse (33)
-
rake
/ gempackagetask (44) -
rake
/ packagetask (286) -
rdoc
/ markup (11) - resolv (165)
-
rexml
/ document (242) -
rexml
/ sax2listener (11) - rubygems (11)
-
rubygems
/ command (33) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ package / tar _ reader / entry (11) -
rubygems
/ remote _ fetcher (33) - shell (6)
- socket (99)
- stringio (55)
- strscan (33)
- tracer (33)
-
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httpauth / userdb (11) -
webrick
/ httprequest (22) -
webrick
/ httpservlet / abstract (77) -
webrick
/ httpservlet / cgihandler (22) -
webrick
/ httpservlet / erbhandler (22) -
webrick
/ httpservlet / filehandler (33) -
webrick
/ httpservlet / prochandler (33) -
webrick
/ httputils (55) - win32ole (55)
- zlib (33)
クラス
-
ARGF
. class (55) - Addrinfo (33)
- BasicSocket (44)
- Binding (44)
- CSV (11)
- Exception (22)
-
Gem
:: Command (33) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: LoadError (11) -
Gem
:: Package :: TarReader :: Entry (11) -
Gem
:: RemoteFetcher (33) - GetoptLong (176)
- IO (88)
-
IRB
:: FileInputMethod (11) -
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (11) -
IRB
:: StdioInputMethod (11) - Module (22)
-
Net
:: FTP (132) -
Net
:: HTTP (165) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (99) -
Net
:: IMAP (33) - Object (44)
-
OpenSSL
:: Config (11) -
OpenSSL
:: SSL :: SSLContext (33) - OptionParser (22)
-
RDoc
:: Markup (11) -
REXML
:: Attribute (33) -
REXML
:: Attributes (121) -
REXML
:: Element (66) -
REXML
:: Instruction (22) -
Rake
:: GemPackageTask (44) -
Rake
:: PackageTask (286) - Resolv (44)
-
Resolv
:: DNS (66) -
Resolv
:: DNS :: Resource :: IN :: SRV (11) -
Resolv
:: Hosts (44) - Shell (6)
- Socket (22)
- String (11)
- StringIO (55)
- StringScanner (33)
- Thread (22)
- Tracer (33)
-
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPServlet :: AbstractServlet (77) -
WEBrick
:: HTTPServlet :: CGIHandler (22) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (22) -
WEBrick
:: HTTPServlet :: ERBHandler (22) -
WEBrick
:: HTTPServlet :: FileHandler (11) -
WEBrick
:: HTTPServlet :: ProcHandler (33) -
WEBrick
:: HTTPUtils :: FormData (55) - WIN32OLE (55)
-
Zlib
:: GzipReader (33)
モジュール
-
CGI
:: HtmlExtension (44) - Kernel (33)
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (341) -
OpenSSL
:: Buffering (33) -
OpenSSL
:: SSL :: SocketForwarder (11) -
OptionParser
:: Arguable (11) -
REXML
:: SAX2Listener (11) -
WEBrick
:: HTTPAuth :: UserDB (11)
キーワード
- == (11)
- [] (44)
- []= (22)
-
_ getproperty (11) -
add
_ field (11) - attribute (11)
-
backtrace
_ locations (11) -
basic
_ auth (11) - binary (11)
- binary= (11)
- body (11)
- chunked? (11)
-
class
_ variable _ get (11) - code (11)
- connect (11)
-
connect
_ from (22) -
connect
_ nonblock (11) -
const
_ get (11) -
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type= (11) -
create
_ makefile (11) - define (22)
- delete (22)
-
delete
_ all (11) -
dir
_ config (11) -
do
_ DELETE (11) -
do
_ GET (66) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (44) -
do
_ PUT (11) - each (33)
-
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ option (11) -
each
_ value (11) - entity (11)
- error (11)
- error? (11)
- eval (11)
- fetch (33)
- filename (11)
- filename= (11)
- form (44)
-
form
_ data= (11) -
gem
_ file (11) -
gem
_ spec (11) - get2 (22)
-
get
_ all _ gem _ names (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ byte (11) -
get
_ elements (11) -
get
_ fields (11) -
get
_ file _ uri _ path (11) -
get
_ instance (11) -
get
_ line (11) -
get
_ line _ types (11) -
get
_ one _ gem _ name (11) -
get
_ one _ optional _ argument (11) -
get
_ option (11) -
get
_ passwd (33) -
get
_ path (11) -
get
_ proxy _ from _ env (11) -
get
_ text (11) -
get
_ thread _ no (11) -
get
_ value (11) - getacl (11)
- getaddress (33)
- getaddresses (33)
- getbinaryfile (22)
- getbyte (55)
- getc (66)
- getch (22)
- getdir (11)
- getname (33)
- getnameinfo (11)
- getnames (33)
- getopts (33)
- getpeereid (11)
- getpeername (11)
- getquota (11)
- getquotaroot (11)
- getresource (11)
- getresources (11)
- gets (143)
- getsockname (11)
- getsockopt (22)
- gettextfile (22)
- getwd (6)
- head2 (22)
-
http
_ version (11) - init (22)
-
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) - key? (11)
- length (11)
-
local
_ host= (11) -
local
_ port= (11) -
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
main
_ type (11) -
make
_ partial _ content (11) - method (22)
- modified? (11)
- msg (11)
- name (22)
- name= (22)
- namespace (11)
- namespaces (11)
-
need
_ tar (11) -
need
_ tar= (11) -
need
_ tar _ bz2 (11) -
need
_ tar _ bz2= (11) -
need
_ tar _ gz (11) -
need
_ tar _ gz= (11) -
need
_ zip (11) -
need
_ zip= (11) -
ole
_ free (11) -
ole
_ func _ methods (11) -
ole
_ get _ methods (11) -
ole
_ put _ methods (11) - ordering (11)
- ordering= (11)
-
package
_ dir (11) -
package
_ dir= (11) -
package
_ dir _ path (11) -
package
_ name (11) - path (11)
- prefix (11)
- prefixes (11)
-
processing
_ instruction (11) -
proxy
_ basic _ auth (11) - pwd (11)
- quiet (11)
- quiet= (11)
- quiet? (11)
- range (11)
-
range
_ length (11) -
read
_ body (22) - readline (11)
- request (33)
-
request
_ get (22) -
request
_ head (22) -
request
_ line (11) -
request
_ method (11) - response (11)
-
response
_ body _ permitted? (11) - resume (11)
- root (11)
-
root
_ node (11) -
send
_ request (11) - service (11)
-
session
_ get _ cb (11) -
session
_ get _ cb= (11) -
set
_ content _ type (11) -
set
_ error (11) -
set
_ form _ data (11) -
set
_ get _ line _ procs (11) -
set
_ params (11) -
set
_ socket (11) - size (11)
-
sub
_ type (11) -
tar
_ bz2 _ file (11) -
tar
_ command (11) -
tar
_ command= (11) -
tar
_ gz _ file (11) - target (22)
- target= (11)
- terminate (11)
- terminated? (11)
- text (11)
-
tgz
_ file (11) -
thread
_ variable _ get (11) -
to
_ string (11) -
type
_ params (11) - ungetbyte (22)
- ungetc (44)
- value (11)
- version (11)
- version= (11)
-
version
_ requirement (11) -
zip
_ command (11) -
zip
_ command= (11) -
zip
_ file (11)
検索結果
先頭5件
- GetoptLong
# get -> [String , String] - Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse - Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil - Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil
-
GetoptLong
# get -> [String , String] (24321.0) -
ARGV から、次のオプションの名前と、もしあればその引数の組を取 得します。メソッドは 2 つの値を返し、1 つ目の値がオプション名 (例: --max-size) で、2 つ目がオプションの引数 (例: 20K) です。
...す。
get と get_option は常にオプション名を正式名
で返します。与えられたオプションが引数を取らないときは、
空の文字列 ('') が optarg にセットされます。オプションが
ARGV に残っていないときは、optname, optarg ともに nil......。
* GetoptLong::AmbiguousOption
* GetoptLong::InvalidOption
* GetoptLong::MissingArgument
* GetoptLong::NeedlessArgument
加えて、静粛 (quiet) フラグが有効になっていない限り、エラーメッ
セージを標準エラー出力に出力します。
例:
optname, optarg......= option_parser.get... -
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (21333.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を......uby]{
# 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) do... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (21333.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を......uby]{
# 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) do... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (21203.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取......えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (21203.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取......えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応... -
REXML
:: Element # get _ elements(xpath) -> [REXML :: Element] (15302.0) -
xpath にマッチする要素を配列で返します。
...xpath にマッチする要素を配列で返します。
xpath には XPath 文字列を指定します。
@param xpath XPath 文字列
@see REXML::Elements#to_a... -
GetoptLong
# get _ option -> [String , String] (15221.0) -
ARGV から、次のオプションの名前と、もしあればその引数の組を取 得します。メソッドは 2 つの値を返し、1 つ目の値がオプション名 (例: --max-size) で、2 つ目がオプションの引数 (例: 20K) です。
...す。
get と get_option は常にオプション名を正式名
で返します。与えられたオプションが引数を取らないときは、
空の文字列 ('') が optarg にセットされます。オプションが
ARGV に残っていないときは、optname, optarg ともに nil......。
* GetoptLong::AmbiguousOption
* GetoptLong::InvalidOption
* GetoptLong::MissingArgument
* GetoptLong::NeedlessArgument
加えて、静粛 (quiet) フラグが有効になっていない限り、エラーメッ
セージを標準エラー出力に出力します。
例:
optname, optarg......= option_parser.get... -
Addrinfo
# getnameinfo(flags=0) -> [String , String] (15201.0) -
ノード名とサービスを文字列の配列で返します。
...:NI_??? という名前の定数のビット OR を渡します。
require 'socket'
Addrinfo.tcp("127.0.0.1", 80).getnameinfo
#=> ["localhost", "www"]
Addrinfo.tcp("127.0.0.1", 80).getnameinfo(Socket::NI_NUMERICSERV)
#=> ["localhost", "80"]
@param flags フラグ
@raise SocketError getn......ameinfo(3) がエラーを起こした場合に生じる例外
@see Socket.getnameinfo... -
StringIO
# ungetbyte(char) -> nil (15201.0) -
指定された char を読み戻します。
...指定された char を読み戻します。
2バイト以上の読み戻しは保証されません。
@param char 読み戻したい1文字かそのコードポイントを指定します。
@see IO#ungetbyte... -
StringIO
# ungetc(str _ or _ int) -> nil (15201.0) -
文字列か整数で指定された str_or_int を自身に書き戻します。 nil を返します。
...定された str_or_int を自身に書き戻します。
nil を返します。
何回でも書き戻すことが可能です。
現在位置が自身のサイズよりも大きい場合は、自身をリサイズしてから、ch を書き戻します。
@param str_or_int 書き戻したい文......ruby]{
require "stringio"
s = StringIO.new("hoge")
s.pos = 1
s.ungetc("H")
p s.string # => "Hoge"
p s.pos # => 0
s = StringIO.new("hoge")
s.pos = 1
s.ungetc("H".ord)
p s.string # => "Hoge"
p s.pos # => 0
s = StringIO.new("hoge")
s.pos = 4
s.ungetc("HOGE")
p s.string # => "hogHOGE"......p s.pos # => 3
s = StringIO.new("hoge")
s.pos = 8
s.ungetc("A")
p s.string # => "hoge\000\000\000A"
p s.pos # => 7
//}...