ライブラリ
- ビルトイン (144)
-
cgi
/ html (48) - csv (36)
- getoptlong (36)
-
io
/ console (12) -
irb
/ input-method (36) - mkmf (12)
-
net
/ ftp (24) -
net
/ http (252) - openssl (60)
-
rake
/ gempackagetask (12) -
rake
/ packagetask (132) - resolv (120)
-
rexml
/ document (96) -
rubygems
/ command (24) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ remote _ fetcher (12) - shell (6)
- socket (48)
- stringio (60)
- strscan (36)
- tracer (12)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httpauth / userdb (12) -
webrick
/ httprequest (24) -
webrick
/ httputils (60) - zlib (12)
クラス
-
ARGF
. class (48) - Addrinfo (12)
- BasicSocket (24)
- CSV (36)
-
Gem
:: Command (24) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: RemoteFetcher (12) - GetoptLong (36)
- IO (60)
-
IRB
:: FileInputMethod (12) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) - Module (24)
-
Net
:: FTP (24) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (96) -
OpenSSL
:: Config (12) -
REXML
:: Attribute (36) -
REXML
:: Attributes (36) -
REXML
:: Element (12) -
REXML
:: Instruction (12) -
Rake
:: GemPackageTask (12) -
Rake
:: PackageTask (132) - Resolv (48)
-
Resolv
:: DNS (24) -
Resolv
:: Hosts (48) - Shell (6)
- Socket (12)
- String (12)
- StringIO (60)
- StringScanner (36)
- Thread (12)
- Tracer (12)
-
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (24) -
WEBrick
:: HTTPUtils :: FormData (60) -
Zlib
:: GzipReader (12)
モジュール
-
CGI
:: HtmlExtension (48) - Kernel (12)
-
Net
:: HTTPHeader (132) -
OpenSSL
:: Buffering (36) -
OpenSSL
:: SSL :: SocketForwarder (12) -
WEBrick
:: HTTPAuth :: UserDB (12)
キーワード
- [] (36)
-
basic
_ auth (12) - body (12)
-
class
_ variable _ get (12) - code (12)
- connect (12)
-
const
_ get (12) - delete (12)
-
dir
_ config (12) - entity (12)
- fetch (36)
- filename (12)
- filename= (12)
- form (48)
-
gem
_ file (12) -
get
_ byte (12) -
get
_ fields (12) -
get
_ file _ uri _ path (12) -
get
_ line (12) -
get
_ one _ gem _ name (12) -
get
_ one _ optional _ argument (12) -
get
_ option (12) -
get
_ passwd (36) -
get
_ path (12) -
get
_ value (12) - getaddress (24)
- getaddresses (24)
- getbyte (36)
- getc (60)
- getch (24)
- getdir (12)
- getname (24)
- getnameinfo (12)
- getnames (24)
- getpeername (12)
- getresource (12)
- getresources (12)
- gets (156)
- getsockname (12)
- getsockopt (12)
- getwd (6)
-
http
_ version (12) -
main
_ type (12) - method (24)
- msg (12)
- name (24)
- name= (12)
- namespace (12)
- namespaces (12)
-
package
_ dir (12) -
package
_ dir _ path (12) -
package
_ name (12) - path (12)
- prefix (12)
- prefixes (12)
-
proxy
_ basic _ auth (12) - pwd (12)
-
read
_ body (24) - readline (12)
-
request
_ line (12) -
request
_ method (12) - shift (12)
-
sub
_ type (12) -
tar
_ bz2 _ file (12) -
tar
_ command (12) -
tar
_ gz _ file (12) - target (12)
- text (12)
-
tgz
_ file (12) -
thread
_ variable? (12) -
to
_ string (12) - ungetbyte (12)
- ungetc (24)
- version (12)
-
zip
_ command (12) -
zip
_ file (12)
検索結果
先頭5件
-
StringIO
# ungetc(str _ or _ int) -> nil (12149.0) -
文字列か整数で指定された str_or_int を自身に書き戻します。 nil を返します。
...[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
//}... -
StringIO
# getbyte -> Integer | nil (12101.0) -
自身から 1 文字読み込んで、その文字に対応する Fixnum を返します。 文字列の終端に到達した時には nil を返します。
...字列の終端に到達した時には nil を返します。
@raise IOError 自身が読み取り不可なら発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("ho")
a.getbyte #=> 104
a.getbyte #=> 111
a.getbyte #=> nil
//}... -
StringIO
# ungetbyte(char) -> nil (12101.0) -
指定された char を読み戻します。
...指定された char を読み戻します。
2バイト以上の読み戻しは保証されません。
@param char 読み戻したい1文字かそのコードポイントを指定します。
@see IO#ungetbyte... -
GetoptLong
# get _ option -> [String , String] (9529.0) -
ARGV から、次のオプションの名前と、もしあればその引数の組を取 得します。メソッドは 2 つの値を返し、1 つ目の値がオプション名 (例: --max-size) で、2 つ目がオプションの引数 (例: 20K) です。
...は 2 つの値を返し、1 つ目の値がオプション名
(例: --max-size) で、2 つ目がオプションの引数 (例: 20K) です。
get と get_option は常にオプション名を正式名
で返します。与えられたオプションが引数を取らないときは、
空の文......わない場合は、エラーとなって、以下のいずれかの例外が発生し
ます。
* GetoptLong::AmbiguousOption
* GetoptLong::InvalidOption
* GetoptLong::MissingArgument
* GetoptLong::NeedlessArgument
加えて、静粛 (quiet) フラグが有効になっていない限り、......エラーメッ
セージを標準エラー出力に出力します。
例:
optname, optarg = option_parser.get... -
Addrinfo
# getnameinfo(flags=0) -> [String , String] (6505.0) -
ノード名とサービスを文字列の配列で返します。
...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 getnameinfo(3) がエラーを起こした場合に生じる例外
@see Socket.getnameinfo... -
Net
:: HTTPHeader # get _ fields(key) -> [String] (6316.0) -
key ヘッダフィールドの値 (文字列) を配列で返します。
...ール名を文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.get_fields('accept-ranges') # => ["none"]
//}
@see Net::HTTPHeader#[] , Net::HTTPHeader#[]=,
Net::HTTPHeader#add_field... -
ARGF
. class # gets(limit) -> String | nil (6307.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...RGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("......e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc... -
ARGF
. class # gets(limit , chomp: false) -> String | nil (6307.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...RGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("......e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc... -
ARGF
. class # gets(rs = $ / ) -> String | nil (6307.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...RGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("......e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc... -
ARGF
. class # gets(rs = $ / , chomp: false) -> String | nil (6307.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...RGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("......e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc... -
ARGF
. class # gets(rs , limit) -> String | nil (6307.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...RGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("......e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc... -
ARGF
. class # gets(rs , limit , chomp: false) -> String | nil (6307.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...RGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("......e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte, ARGF.class#getc...