別のキーワード
ライブラリ
- ビルトイン (1164)
- coverage (8)
- csv (48)
- delegate (24)
- fileutils (28)
-
io
/ console (12) -
io
/ nonblock (12) -
irb
/ context (12) - json (60)
-
minitest
/ spec (16) -
minitest
/ unit (8) - mkmf (12)
-
net
/ smtp (16) - objspace (12)
- open-uri (16)
- openssl (12)
- optparse (168)
- pp (24)
- pstore (24)
- psych (46)
-
rdoc
/ code _ object (36) - set (9)
- socket (12)
- strscan (36)
- tempfile (24)
-
test
/ unit (1) - thread (12)
- timeout (21)
- win32ole (108)
- zlib (72)
クラス
- Array (48)
- BasicObject (48)
- CSV (48)
- Class (12)
- Coverage (8)
- Data (6)
- Delegator (24)
- Enumerator (60)
- Hash (24)
- IO (96)
- KeyError (16)
- Module (180)
- Mutex (2)
-
Net
:: SMTP (16) - Numeric (12)
- Object (327)
-
OpenSSL
:: ASN1 :: ObjectId (12) - OptionParser (144)
- PP (24)
- PStore (24)
- Proc (17)
-
Psych
:: ScalarScanner (12) -
RDoc
:: CodeObject (36) - Range (24)
- Regexp (12)
- Set (12)
- String (36)
- StringScanner (36)
- Symbol (4)
- Tempfile (24)
- Thread (12)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - TracePoint (48)
- UNIXSocket (12)
- WIN32OLE (12)
-
WIN32OLE
_ METHOD (24) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIABLE (12) -
Zlib
:: GzipReader (24) -
Zlib
:: GzipWriter (48)
モジュール
- FileUtils (28)
- GC (24)
- JSON (48)
- Kernel (88)
- Marshal (24)
-
MiniTest
:: Assertions (8) - ObjectSpace (24)
-
OptionParser
:: Arguable (24) - Psych (34)
-
Test
:: Unit (1) - Timeout (21)
オブジェクト
- ENV (12)
キーワード
- ! (12)
- !~ (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- == (63)
- === (36)
- > (12)
- >= (12)
- Context (12)
- ENV (12)
- Float (7)
- Hash (12)
- Integer (7)
- JSON (12)
-
MAJOR
_ VERSION (12) -
MINOR
_ VERSION (12) - Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - Rational (7)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Rubyの起動 (12)
- Ruby用語集 (12)
- Set (3)
- TRUE (8)
- Version (12)
- [] (12)
-
_ _ id _ _ (12) - allocate (12)
-
arg
_ config (12) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ nil (1) -
assert
_ respond _ to (1) -
assert
_ same (1) - bsearch (48)
- cd (14)
- chdir (14)
-
class
_ variables (12) - clone (24)
-
compare
_ by _ identity (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
- coverage (8)
- create (24)
-
create
_ id (12) -
default
_ event _ sources (12) -
deprecate
_ constant (12) - deq (24)
- disable (24)
-
document
_ children= (12) -
document
_ self= (12) - dup (12)
- each (48)
- enable (24)
- eql? (51)
- equal? (24)
- event? (12)
- fetch (12)
-
for
_ fd (12) - freeze (12)
- frozen? (12)
-
garbage
_ collect (12) - generate (12)
-
initialize
_ copy (9) - input? (12)
- instance (24)
-
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) - invoke (12)
- irb (12)
-
irb
/ ext / math-mode (4) -
is
_ a? (12) - itself (12)
- key (8)
-
kind
_ of? (12) - lambda (13)
-
latest
_ gc _ info (24) - load (15)
- methods (12)
-
must
_ be (1) -
must
_ be _ close _ to (1) -
must
_ be _ empty (1) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
must
_ be _ nil (1) -
must
_ be _ same _ as (1) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
must
_ equal (1) -
must
_ include (1) -
must
_ match (1) -
must
_ raise (1) -
must
_ respond _ to (1) -
must
_ send (1) -
must
_ throw (1) - new (38)
- next (12)
- nil? (12)
- nonblock (12)
-
object
_ id (12) - on (144)
- open (64)
- optional? (12)
- parameters (3)
- parse (12)
- parse! (12)
-
pending
_ interrupt? (12) - pop (24)
-
private
_ instance _ methods (12) -
private
_ methods (12) - proc (14)
-
protected
_ instance _ methods (12) -
protected
_ methods (24) -
public
_ instance _ methods (12) -
public
_ methods (24) - raw (12)
-
reachable
_ objects _ from (12) -
read
_ nonblock (12) - receiver (8)
-
recv
_ io (12) - register (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ load (19) -
scan
_ full (12) -
search
_ full (12) - set (9)
-
setup
_ argv (1) -
sharing
_ detection (12) -
sharing
_ detection= (12) - shift (24)
-
singleton
_ class (12) -
singleton
_ methods (12) - start (24)
-
start
_ doc (12) - synchronize (12)
- taint (6)
- tainted? (6)
- timeout (21)
-
to
_ hash (12) -
to
_ proc (4) - tokenize (12)
- transaction (12)
- untaint (6)
- visible? (48)
- wrap (48)
-
write
_ nonblock (12) - yaml (12)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- 変数と定数 (12)
検索結果
先頭5件
- Tempfile
. create(basename="" , tmpdir=nil , mode: 0 , **options) -> File - Zlib
:: GzipReader . wrap(io) -> Zlib :: GzipReader - Zlib
:: GzipWriter . open(filename , level = Zlib :: DEFAULT _ COMPRESSION , strategy = Zlib :: DEFAULT _ STRATEGY) -> Zlib :: GzipWriter - Zlib
:: GzipWriter . wrap(io , level = Zlib :: DEFAULT _ COMPRESSION , strategy = Zlib :: DEFAULT _ STRATEGY) -> Zlib :: GzipWriter - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP
-
Tempfile
. create(basename="" , tmpdir=nil , mode: 0 , **options) -> File (7.0) -
テンポラリファイルを作成し、それを表す File オブジェクトを生成して返します(Tempfileではありません)。 createはopenに似ていますが、finalizerによるファイルの自動unlinkを行いません。
...ものが指定できます。ただし、:permオプションは無視され
ます。
@see Tempfile.open
例:
require "tempfile"
GC.disable
path = ""
Tempfile.create("foo") do |f|
path = f.path
p File.exist?(path) #=> true
end
p File.exist?(path) #=> false... -
Zlib
:: GzipReader . wrap(io) -> Zlib :: GzipReader (7.0) -
io と関連付けられた GzipReader オブジェクトを作成します。
...Zlib::GzipWriter.open('hoge.gz') { |gz|
gz.puts 'hoge'
}
=end
f = File.open('hoge.gz')
Zlib::GzipReader.wrap(f){|gz|
print gz.read
}
p f.closed? #=> true
f = File.open('hoge.gz')
Zlib::GzipReader.wrap(f){|gz|
print gz.read
gz.finish
}
p f.closed? #=> false... -
Zlib
:: GzipWriter . open(filename , level = Zlib :: DEFAULT _ COMPRESSION , strategy = Zlib :: DEFAULT _ STRATEGY) -> Zlib :: GzipWriter (7.0) -
filename で指定されるファイルを gzip 圧縮データの 書き出し用にオープンします。GzipWriter オブジェクトを返します。 その他詳細は Zlib::GzipWriter.new や Zlib::GzipWriter.wrap と 同じです。
...FFMAN_ONLY, Zlib::DEFAULT_STRATEGYなど指定します。
詳細はzlib.h を参照してください。
require 'zlib'
filename='hoge1.gz'
gz = Zlib::GzipWriter.open(filename)
gz.puts "hogehoge" * 100
gz.close
p gz.closed? #=> true
p FileTest.size(filename) #=> 32... -
Zlib
:: GzipWriter . wrap(io , level = Zlib :: DEFAULT _ COMPRESSION , strategy = Zlib :: DEFAULT _ STRATEGY) -> Zlib :: GzipWriter (7.0) -
io と関連付けられた GzipWriter オブジェクトを作成します。 ブロックが与えられた場合、 それを引数としてブロックを実行します。 ブロックの実行が終了すると、GzipWriter オブジェクトは自動的に クローズされます。関連付けられている IO オブジェクトまで クローズしたくない時は、ブロック中で Zlib::GzipFile#finish メソッドを呼び出して下さい。
...t'
f = File.open(filename, "w")
Zlib::GzipWriter.wrap(f, Zlib::NO_COMPRESSION){|gz|
gz.puts "hogehoge" * 100
}
p f.closed? #=> true
p FileTest.size(filename) #=> 824
end
def case2
filename='hoge1.gz'
f = File.open(filename, "w")
Zlib::GzipWriter.wrap(f, Z... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (4.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロックを呼び、ブロック終了時に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
...