596件ヒット
[1-100件を表示]
(0.119秒)
別のキーワード
ライブラリ
- ビルトイン (409)
-
irb
/ frame (11) -
irb
/ input-method (22) -
net
/ ftp (66) - rake (22)
-
rubygems
/ installer (11) - tracer (33)
- zlib (11)
クラス
-
ARGF
. class (22) - BasicObject (11)
- Binding (17)
-
Gem
:: Installer (11) - IO (348)
-
IRB
:: Frame (11) -
IRB
:: ReadlineInputMethod (22) -
Net
:: FTP (66) -
RDoc
:: Options (11) -
Rake
:: FileList (11) - Tracer (33)
-
Zlib
:: GzipReader (11)
モジュール
- Enumerable (11)
- Kernel (11)
キーワード
- chunk (11)
- each (66)
-
each
_ line (66) - egrep (11)
- eof? (11)
- eval (11)
-
get
_ line (11) - gets (33)
- gettextfile (22)
-
inline
_ source (11) -
inplace
_ mode= (11) -
instance
_ eval (11) - lineno (22)
- lineno= (11)
- pos (11)
- pos= (11)
- pread (7)
- puttextfile (22)
-
readable
_ atfer _ eof? (11) - readline (44)
- readlines (33)
- reopen (33)
- rewind (11)
-
set
_ get _ line _ procs (11) - shebang (11)
-
source
_ location (6) - stat (11)
- storlines (22)
- tell (11)
-
trace
_ func (22)
検索結果
先頭5件
- Kernel
# file(*args) { . . . } -> Rake :: FileTask - Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) {|line| . . . } -> nil - Net
:: FTP # puttextfile(localfile , remotefile = File . basename(localfile)) {|line| . . . } -> nil - Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) -> nil - Net
:: FTP # puttextfile(localfile , remotefile = File . basename(localfile)) -> nil
-
Kernel
# file(*args) { . . . } -> Rake :: FileTask (18220.0) -
ファイルタスクを定義します。
...と依存ファイル名を指定します。
例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end
end
end
@see Rake::T... -
Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) {|line| . . . } -> nil (6604.0) -
サーバ上のファイルをテキストモードで取得します。
...ルをテキストモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
ブロックが指定さ......場合は
データを1行受信するごとに、その行をブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@raise Net::FTPTempE... -
Net
:: FTP # puttextfile(localfile , remotefile = File . basename(localfile)) {|line| . . . } -> nil (6604.0) -
サーバにファイルをテキストモードで転送します。
...の localfile という名前のファイルを読みだし、
サーバー上の remotefile という名前のファイルに保存します。
ブロックが指定された場合は
データを1行転送するごとに、その行を
ブロックに渡します。
@param localfile 転送する......ローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生しま... -
Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) -> nil (6504.0) -
サーバ上のファイルをテキストモードで取得します。
...ルをテキストモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
ブロックが指定さ......場合は
データを1行受信するごとに、その行をブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@raise Net::FTPTempE... -
Net
:: FTP # puttextfile(localfile , remotefile = File . basename(localfile)) -> nil (6504.0) -
サーバにファイルをテキストモードで転送します。
...の localfile という名前のファイルを読みだし、
サーバー上の remotefile という名前のファイルに保存します。
ブロックが指定された場合は
データを1行転送するごとに、その行を
ブロックに渡します。
@param localfile 転送する......ローカルのファイル名を与えます。
@param remotefile 転送データを保存するリモートのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生しま... -
Net
:: FTP # storlines(cmd , file) {|line| . . . } -> nil (6322.0) -
サーバーに cmd で指定されたコマンドを送り、テキストデータを 送ります。
...れたコマンドを送り、テキストデータを
送ります。
一行ずつで file からテキストを読み込み、サーバーに送ります。
送るデータは IO のインスタンスを
file で指定します。
(実際には StringIO のような IO とメソッドレベル......ロックが与えられた場合には各行をそのブロックに渡します。
@param cmd コマンドを文字列で与えます。
@param file 送るデータを与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コ......。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#puttextfile... -
Tracer
# get _ line(file , line) -> String (6316.0) -
@todo
...@todo
@param file
@param line... -
Net
:: FTP # storlines(cmd , file) -> nil (6222.0) -
サーバーに cmd で指定されたコマンドを送り、テキストデータを 送ります。
...れたコマンドを送り、テキストデータを
送ります。
一行ずつで file からテキストを読み込み、サーバーに送ります。
送るデータは IO のインスタンスを
file で指定します。
(実際には StringIO のような IO とメソッドレベル......ロックが与えられた場合には各行をそのブロックに渡します。
@param cmd コマンドを文字列で与えます。
@param file 送るデータを与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コ......。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#puttextfile... -
Tracer
# set _ get _ line _ procs(file , p = proc) (6203.0) -
@todo
@todo -
IO
# readlines(limit , chomp: false) -> [String] (6191.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...rite("testfile", "line1,\nline2,\nline3,\n")
File.open("testfile") { |f| p f.readlines } # => ["line1,\n", "line2,\n", "line3,\n"]
File.open("testfile") { |f| p f.readlines(3) } # => ["lin", "e1,", "\n", "lin", "e2,", "\n", "lin", "e3,", "\n"]
File.open("testfile") { |f| p f.readlines(",") }......ine1,", "\nline2,", "\nline3,", "\n"]
//}
//emlist[例: rsを取り除く(chomp = true)][ruby]{
IO.write("testfile", "line1,\rline2,\r\nline3,\n")
File.open("testfile") { |f| p f.readlines(chomp: true) } # => ["line1,\rline2,", "line3,"]
File.open("testfile") { |f| p f.readlines("\r", cho......mp: true) } # => ["line1,", "line2,", "\nline3,\n"]
//}
@see $/, IO#gets...