1929件ヒット
[1-100件を表示]
(0.092秒)
別のキーワード
ライブラリ
- ビルトイン (90)
- csv (36)
- dbm (108)
- gdbm (108)
-
net
/ ftp (20) -
net
/ http (48) -
net
/ pop (24) -
net
/ smtp (24) - open-uri (108)
- openssl (416)
- ostruct (77)
- pathname (12)
-
rake
/ loaders / makefile (12) -
rexml
/ streamlistener (12) - sdbm (156)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (18) - socket (168)
- stringio (36)
- tempfile (36)
- zlib (408)
クラス
- BasicSocket (60)
- CSV (36)
- DBM (108)
- Dir (12)
-
File
:: Stat (12) - GDBM (108)
- IO (36)
- IPSocket (12)
- Integer (12)
-
Net
:: FTP (20) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) -
Net
:: POP3 (24) -
Net
:: SMTP (24) - Object (30)
-
OpenSSL
:: ASN1 :: ObjectId (60) -
OpenSSL
:: BN (260) -
OpenSSL
:: Config (12) -
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: X509 :: ExtensionFactory (12) -
OpenSSL
:: X509 :: Name (24) -
OpenSSL
:: X509 :: StoreContext (12) - OpenStruct (77)
- Pathname (12)
-
Rake
:: MakefileLoader (12) - SDBM (156)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) - StringIO (36)
- TCPServer (24)
- Tempfile (36)
- UNIXServer (24)
- UNIXSocket (48)
-
Zlib
:: GzipReader (240) -
Zlib
:: GzipWriter (168)
モジュール
-
OpenURI
:: Meta (96) -
OpenURI
:: OpenRead (12) -
REXML
:: StreamListener (12)
キーワード
- << (24)
- <=> (24)
- > (6)
- >> (18)
- [] (12)
- []= (12)
- accept (24)
-
add
_ row (12) - addr (12)
-
base
_ uri (12) -
bit
_ set? (12) -
body
_ stream (12) -
body
_ stream= (12) - charset (24)
- ciphers (12)
-
clear
_ bit! (12) -
client
_ cert _ cb= (12) - close (24)
- close! (12)
- closed? (12)
- cmp (12)
- coerce (12)
- comment= (12)
- config= (12)
-
content
_ encoding (12) -
content
_ type (12) - delete (36)
-
delete
_ all (24) -
delete
_ if (12) - dig (10)
-
do
_ not _ reverse _ lookup (12) - each (36)
-
each
_ byte (24) -
each
_ line (24) -
each
_ pair (24) - entitydecl (12)
- eof (12)
- eof? (12)
- error= (12)
- fcntl (12)
- fdatasync (12)
- fetch (36)
- finish (12)
- flush (24)
- getc (12)
- getpeername (12)
- gets (12)
- getsockname (12)
- invert (36)
- keys (24)
-
last
_ modified (12) - lineno (12)
- lineno= (12)
- ln (12)
- load (12)
-
local
_ address (12) -
long
_ name (12) - lshift! (12)
-
mask
_ bits! (12) - mlsd (20)
-
mod
_ add (12) -
mod
_ exp (12) -
mod
_ inverse (12) -
mod
_ mul (12) -
mod
_ sub (12) - mtime= (12)
- negative? (8)
-
num
_ bits (12) -
num
_ bytes (12) - oid (12)
-
orig
_ name= (12) - out (18)
- path (12)
- peeraddr (24)
- pos (24)
-
pretty
_ print (12) -
prime
_ fasttest? (12) - print (12)
- printf (12)
- putc (12)
- puts (24)
- read (36)
-
read
_ body (24) - readchar (12)
- readline (12)
- readlines (12)
- ready (12)
- recvfrom (12)
- reject! (12)
-
remote
_ address (12) - reopen (24)
- replace (36)
- rewind (12)
- rshift! (12)
- select (36)
-
set
_ bit! (12) - shift (24)
-
short
_ name (12) - sn (12)
- status (12)
- store (12)
- sysaccept (24)
- tell (24)
- then (14)
-
to
_ a (36) -
to
_ bn (12) -
to
_ h (19) -
to
_ hash (24) -
to
_ s (36) - ucmp (12)
- ungetc (12)
- update (24)
-
values
_ at (36) - write (12)
-
yield
_ self (16)
検索結果
先頭5件
-
Tempfile
# open -> self (18114.0) -
クローズしたテンポラリファイルを再オープンします。 "r+" でオープンされるので、クローズ前の内容を再度読む ことができます。
...ァイルを再オープンします。
"r+" でオープンされるので、クローズ前の内容を再度読む
ことができます。
require "tempfile"
tf = Tempfile.new("foo")
tf.print("foobar,hoge\n")
tf.print("bar,ugo\n")
tf.close
tf.open
p tf.gets # => "foobar,hoge\n"... -
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (6114.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...ス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: from@example.com'
f.p... -
StringIO
# reopen(str , mode = & # 39;r+& # 39;) -> StringIO (6114.0) -
自身が表す文字列が指定された文字列 str になります。
...el.#open 同様文字列か整数で自身のモードを指定します。
@raise Errno::EACCES str がフリーズされていて、mode が書き込み可能に設定されている場合に発生します。
//emlist[例][ruby]{
require 'stringio'
sio = StringIO.new("hoge", 'r+')
sio.reopen('f... -
StringIO
# reopen(sio) -> StringIO (6109.0) -
自身が表す文字列が指定された StringIO と同じものになります。
...が指定された StringIO と同じものになります。
@param sio 自身が表したい StringIO を指定します。
//emlist[例][ruby]{
require 'stringio'
sio = StringIO.new("hoge", 'r+')
sio2 = StringIO.new("foo", 'r+')
sio.reopen(sio2)
p sio.read #=> "foo"
//}... -
OpenURI
:: OpenRead # read(options = {}) -> String (6029.0) -
自身が表す内容を読み込んで文字列として返します。 self.open(options={}) {|io| io.read } と同じです。 このメソッドによって返される文字列は OpenURI::Meta によって extend されています。
...字列として返します。
self.open(options={}) {|io| io.read } と同じです。
このメソッドによって返される文字列は OpenURI::Meta
によって extend されています。
@param options ハッシュを与えます。
require 'open-uri'
uri = URI.parse('http://www.ex......ample.com/')
str = uri.read
p str.is_a?(OpenURI::Meta) # => true
p str.content_type... -
OpenSSL
:: BN # >>(other) -> OpenSSL :: BN (3107.0) -
自身を other ビット右シフトした値を返します。
...自身を other ビット右シフトした値を返します。
//emlist[][ruby]{
require 'openssl'
bn = 2.to_bn
bn >> 1 # => #<OpenSSL::BN 1>
bn # => #<OpenSSL::BN 2>
//}
@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#rshift!... -
OpenSSL
:: BN # mod _ add(other , m) -> OpenSSL :: BN (3107.0) -
(self + other) % m を返します。
...(self + other) % m を返します。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("7").mod_add(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 4
//}
@param other 和を取る数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー... -
OpenSSL
:: BN # mod _ exp(other , m) -> OpenSSL :: BN (3107.0) -
(self ** other) % m を返します。
...(self ** other) % m を返します。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("7").mod_exp(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 1
//}
@param other 指数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー... -
OpenSSL
:: BN # mod _ inverse(m) -> OpenSSL :: BN (3107.0) -
自身の mod m における逆元を返します。
...(self * r) % m == 1 となる r を返します。
存在しない場合は例外 OpenSSL::BNError が発生します。
//emlist[][ruby]{
require 'openssl'
p 3.to_bn.mod_inverse(5) # => 2
p (3 * 2) % 5 # => 1
//}
@param m mod を取る数
@raise OpenSSL::BNError 計算時エラー...