1217件ヒット
[1-100件を表示]
(0.089秒)
別のキーワード
ライブラリ
- ビルトイン (36)
-
cgi
/ core (12) - csv (24)
- open-uri (40)
- psych (12)
-
rexml
/ parsers / ultralightparser (12) -
rubygems
/ package / tar _ input (12) -
rubygems
/ remote _ fetcher (12) - stringio (1004)
クラス
- CSV (24)
- Enumerator (12)
-
Gem
:: Package :: TarInput (12) -
Gem
:: RemoteFetcher (12) -
REXML
:: Parsers :: UltraLightParser (12) - StringIO (992)
モジュール
-
CGI
:: QueryExtension (12) - Enumerable (24)
- Kernel (8)
- OpenURI (12)
-
OpenURI
:: OpenRead (12) - Psych (12)
- URI (8)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - StringIO (12)
- binmode (12)
- bytes (14)
- cgi (12)
- chars (14)
- close (12)
-
close
_ read (12) -
close
_ write (12) - closed? (12)
-
closed
_ read? (12) -
closed
_ write? (12) - codepoints (14)
-
create
_ body (12) - dump (12)
- each (24)
-
each
_ byte (24) -
each
_ char (24) -
each
_ codepoint (24) -
each
_ line (24) -
each
_ with _ index (24) - eof (12)
- eof? (12)
-
external
_ encoding (12) - fcntl (12)
- fileno (12)
- flush (12)
- fsync (12)
- getbyte (12)
- getc (12)
- gets (12)
- inspect (12)
-
internal
_ encoding (12) - isatty (12)
- length (12)
- lineno (12)
- lineno= (12)
- lines (14)
- new (24)
- open (52)
-
open
_ uri (12) -
open
_ uri _ or _ path (12) - pid (12)
- pos (12)
- pos= (12)
- print (24)
- printf (12)
- putc (12)
- puts (12)
- read (36)
-
read
_ nonblock (12) - readbyte (12)
- readchar (12)
- readline (12)
- readlines (12)
- readpartial (36)
- reopen (24)
- rewind (12)
-
ruby 1
. 8 . 2 feature (12) - seek (12)
-
set
_ encoding (36) - size (12)
- string (24)
- string= (12)
- sync (12)
- sync= (12)
- sysread (36)
- syswrite (12)
- tell (12)
- truncate (12)
- tty? (12)
- ungetbyte (12)
- ungetc (12)
-
with
_ index (12) - write (12)
-
write
_ nonblock (12) -
zipped
_ stream (12)
検索結果
先頭5件
-
stringio (44000.0)
-
文字列に IO と同じインタフェースを持たせるためのライブラリです。
文字列に IO と同じインタフェースを持たせるためのライブラリです。 -
StringIO
# getbyte -> Integer | nil (23212.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
# string -> String (23212.0) -
自身が表す文字列を返します。
...たバッファとして使われている文字列です。
文字列は複製されないことに注意して下さい。
//emlist[例][ruby]{
require "stringio"
sio = StringIO.new
sio << "abc"
s = sio.string
p s #=> "abc"
sio << "xyz"
p s #=> "abcxyz"
//}... -
StringIO
# external _ encoding -> Encoding (23200.0) -
現在の外部エンコーディングを返します。
現在の外部エンコーディングを返します。 -
StringIO
# internal _ encoding -> Encoding (23200.0) -
現在の内部エンコーディングを返します。
現在の内部エンコーディングを返します。 -
StringIO
# ungetc(str _ or _ int) -> nil (23130.0) -
文字列か整数で指定された str_or_int を自身に書き戻します。 nil を返します。
...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.po......s # => 3
s = StringIO.new("hoge")
s.pos = 8
s.ungetc("A")
p s.string # => "hoge\000\000\000A"
p s.pos # => 7
//}... -
StringIO
# getc -> String | nil (23112.0) -
自身から 1 文字読み込んで、その文字を返します。 文字列の終端に到達した時には nil を返します。
...列の終端に到達した時には nil を返します。
@raise IOError 自身が読み取り不可なら発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("ho")
a.getc # => "h"
a.getc # => "o"
a.getc # => nil
//}... -
StringIO
# gets(rs = $ / ) -> String | nil (23112.0) -
自身から 1 行読み込んで、その文字列を返します。文字列の終端に到達した時には nil を返します。 $_ に読み込んだ行がセットされます。
...ror 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge")
a.gets #=> "hoge"
$_ #=> "hoge"
a.gets #=> nil
$_ #=> nil
//}
@see $/... -
StringIO
# length -> Integer (23100.0) -
文字列の長さを返します。
文字列の長さを返します。