1896件ヒット
[1801-1896件を表示]
(0.082秒)
ライブラリ
- ビルトイン (291)
-
cgi
/ core (24) - erb (12)
- expect (24)
-
io
/ wait (36) -
irb
/ output-method (72) - kconv (48)
-
minitest
/ unit (1) - mkmf (12)
- monitor (18)
-
net
/ ftp (48) -
net
/ http (146) -
net
/ imap (24) -
net
/ pop (60) -
net
/ smtp (72) - openssl (72)
- prettyprint (12)
- rake (12)
- resolv (12)
-
rexml
/ document (132) - rss (372)
-
rubygems
/ package / tar _ output (48) -
rubygems
/ source _ index (12) -
rubygems
/ user _ interaction (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (18) - stringio (48)
- strscan (24)
- thread (2)
- timeout (16)
- tracer (12)
- uri (24)
-
webrick
/ cgi (12) -
webrick
/ log (12) - win32ole (48)
- zlib (72)
クラス
-
ARGF
. class (24) - Array (57)
- CGI (24)
- ERB (12)
-
Encoding
:: Converter (12) - File (12)
-
Gem
:: Package :: TarOutput (48) -
Gem
:: SourceIndex (12) -
Gem
:: StreamUI (12) - IO (116)
-
IRB
:: OutputMethod (60) -
IRB
:: StdioOutputMethod (12) - Integer (48)
- MatchData (24)
-
MiniTest
:: Unit (1) - Monitor (6)
-
MonitorMixin
:: ConditionVariable (12) - Mutex (2)
-
Net
:: FTP (48) -
Net
:: HTTP (146) -
Net
:: IMAP (12) -
Net
:: IMAP :: Address (12) -
Net
:: POP3 (60) -
Net
:: SMTP (72) - Object (12)
-
OpenSSL
:: SSL :: SSLContext (48) -
OpenSSL
:: SSL :: Session (24) - PrettyPrint (12)
-
RDoc
:: Options (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: NotationDecl (12) -
RSS
:: ImageFaviconModel :: ImageFavicon (24) -
RSS
:: ImageItemModel :: ImageItem (24) -
RSS
:: Maker :: ChannelBase (24) -
RSS
:: RDF :: Channel (24) -
RSS
:: RDF :: Channel :: ImageFavicon (24) -
RSS
:: RDF :: Image (24) -
RSS
:: RDF :: Item (24) -
RSS
:: RDF :: Textinput (24) -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic (24) -
RSS
:: TrackBackModel10 :: TrackBackAbout (48) -
RSS
:: TrackBackModel20 :: TrackBackAbout (48) -
Rake
:: Application (12) -
Resolv
:: DNS (12) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) - String (72)
- StringIO (48)
- StringScanner (24)
-
Thread
:: ConditionVariable (12) -
Thread
:: Mutex (10) - Tracer (12)
-
URI
:: Generic (24) -
WEBrick
:: BasicLog (12) -
WEBrick
:: CGI (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ PARAM (36) -
Zlib
:: GzipReader (12) -
Zlib
:: Inflate (12) -
Zlib
:: ZStream (48)
モジュール
- Kernel (28)
-
RSS
:: BaseTrackBackModel (36) -
RSS
:: RootElementMixin (24)
キーワード
- << (12)
- > (6)
- >> (6)
- about (108)
- about= (108)
-
add
_ gem _ contents (12) -
add
_ signatures (12) -
avail
_ out (12) -
avail
_ out= (12) - begin (12)
- chmod (12)
- chr (24)
- close (12)
- content (12)
- content= (12)
-
continue
_ timeout (12) -
continue
_ timeout= (12) -
cpp
_ command (12) -
debug
_ output= (12) - digits (24)
- display (12)
- end (12)
- expect (24)
- fatal (12)
- fetch (36)
-
flush
_ next _ out (12) -
force
_ output (12) -
force
_ output= (12) - header (12)
- input? (12)
-
insert
_ output (12) - kconv (12)
-
keep
_ alive _ timeout (12) -
keep
_ alive _ timeout= (12) - logout (12)
-
on
_ event _ with _ outargs (12) -
open
_ timeout (48) -
open
_ timeout= (48) - outdated (12)
- output (12)
- output? (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - outs (12)
- pack (21)
- pointer= (12)
- pos= (12)
- pp (12)
- ppx (12)
- pread (8)
- print (24)
- printn (12)
- puts (12)
- read (24)
-
read
_ nonblock (36) -
read
_ timeout (48) -
read
_ timeout= (48) - readpartial (48)
- resource (12)
- resource= (12)
- retval? (12)
- route (12)
-
route
_ from (12) -
route
_ to (12) -
set
_ debug _ output (36) -
set
_ eoutvar (12) - sleep (12)
-
ssl
_ timeout (24) -
ssl
_ timeout= (24) - start (12)
- status (1)
- stdout (12)
- sysread (24)
- timeout (40)
- timeout= (24)
- timeouts= (12)
-
to
_ f (12) -
total
_ out (12) - toutf16 (12)
- toutf32 (12)
- toutf8 (12)
-
trackback
_ about (12) -
trackback
_ about= (12) -
trackback
_ abouts (12) -
tty
_ output= (12) - unpack (12)
- value (24)
- value= (24)
- wait (36)
-
wait
_ for _ cond (6) -
wait
_ readable (12) -
wait
_ writable (12) - write (132)
-
write
_ timeout (7) -
write
_ timeout= (7)
検索結果
先頭5件
-
MatchData
# begin(n) -> Integer | nil (7.0) -
n 番目の部分文字列先頭のオフセットを返します。
...範囲外の n を指定した場合に発生します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.begin(0) # => 0
p $~.begin(1) # => 0
p $~.begin(2) # => 3
p $~.begin(3) # => nil
p $~.begin(4) # => `begin': index 4 out of matches (IndexError)
//}
@see MatchData#end... -
MatchData
# end(n) -> Integer | nil (7.0) -
n 番目の部分文字列終端のオフセットを返します。
...IndexError 範囲外の n を指定した場合に発生します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.end(0) # => 6
p $~.end(1) # => 3
p $~.end(2) # => 6
p $~.end(3) # => nil
p $~.end(4) # => `end': index 4 out of matches (IndexError)
//}
@see MatchData#begin... -
String
# to _ f -> Float (7.0) -
文字列を 10 進数表現と解釈して、浮動小数点数 Float に変換します。
...ると、警告が表示されます。
//emlist[][ruby]{
#!ruby -W2
p ("10" * 1000).to_f # => Infinity
# warning: Float 10101010101010101010... out of range
//}
なお、このメソッドとは逆に、数値を文字列に変換するには
Kernel.#sprintf, String#%, Integer#to_s
を使用... -
String
# unpack(template) -> Array (7.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...7fffffff].pack("U") # => "\xFD\xBF\xBF\xBF\xBF\xBF"
[0x80000000].pack("U") # => RangeError: pack(U): value out of range
[0,256,65536].pack("U3").b # => "\x00\xC4\x80\xF0\x90\x80\x80"
"\x00\xC4\x80\xF0\x90\x80\x80".unpack("U3") # => [0, 256,......"CxC") # => "a\x00b"
[97, 98].pack("Cx3C") # => "a\x00\x00\x00b"
"abc".unpack("CxC") # => [97, 99]
"abc".unpack("Cx3C") # => ArgumentError: x outside of string
//}
: X
1バイト後退
//emlist[][ruby]{
[97, 98, 99].pack("CCXC") # => "ac"
"abcdef".unpack("x*XC") # => [102]
//}
: @... -
StringScanner
# pointer=(n) (7.0) -
スキャンポインタのインデックスを n にセットします。
...ingScanner.new('test string')
p s.scan(/\w+/) # => "test"
p s.pos = 1 # => 1
p s.scan(/\w+/) # => "est"
p s.pos = 7 # => 7
p s.scan(/\w+/) # => "ring"
begin
s.pos = 20
rescue RangeError => err
puts err #=> index out of range
end
p s.pos = -4 # => -4
p s.scan(/\w+/) # => "ring"
//}... -
StringScanner
# pos=(n) (7.0) -
スキャンポインタのインデックスを n にセットします。
...ingScanner.new('test string')
p s.scan(/\w+/) # => "test"
p s.pos = 1 # => 1
p s.scan(/\w+/) # => "est"
p s.pos = 7 # => 7
p s.scan(/\w+/) # => "ring"
begin
s.pos = 20
rescue RangeError => err
puts err #=> index out of range
end
p s.pos = -4 # => -4
p s.scan(/\w+/) # => "ring"
//}... -
WIN32OLE
_ PARAM # input? -> bool (7.0) -
パラメータがクライアントからサーバへ与えるものかを判定します。
...out(サーバがクライアントへ与える。
WIN32OLE_PARAM#output?が真)および、inout(クライアントからサーバ
へ与え、サーバがクライアントへ与える)の3種類の方向属性のいずれかを持ち
ます。
input?メソッドはin属性またはinout属......性なら真を返します。
@return メソッドの方向属性がinまたはinoutならば真を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
param1 = method.params[0]
puts param1.input? # =>... -
WIN32OLE
_ PARAM # retval? -> bool (7.0) -
パラメータが戻り値かどうかを判定します。
...します。
OLEオートメーションの規定では、メソッドの戻り値は引数リストの最右端のパ
ラメータをout属性(WIN32OLE_PARAM#output?が真)とすることで実現し
ます。ただし、そのパラメータをOLEオートメーション呼び出しを記述...