ライブラリ
- ビルトイン (551)
- csv (84)
-
irb
/ cmd / help (12) -
irb
/ context (24) -
irb
/ frame (12) -
irb
/ input-method (72) -
net
/ ftp (108) -
net
/ imap (24) -
net
/ pop (12) - openssl (24)
- optparse (24)
- pathname (24)
- psych (48)
-
rdoc
/ markdown (24) -
rdoc
/ markup (12) -
rdoc
/ text (12) - rss (12)
-
shell
/ system-command (6) - stringio (24)
- tracer (12)
- zlib (120)
クラス
-
ARGF
. class (168) - BasicObject (12)
- Binding (19)
- CSV (60)
-
CSV
:: FieldInfo (24) -
Enumerator
:: Yielder (6) - IO (104)
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: Frame (12) -
IRB
:: ReadlineInputMethod (60) -
IRB
:: StdioInputMethod (12) - Module (36)
-
Net
:: FTP (108) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeText (12) -
Net
:: POPMail (12) - OptionParser (24)
- Pathname (24)
-
Psych
:: Emitter (24) -
Psych
:: Nodes :: Node (24) -
RDoc
:: Markdown (24) -
RDoc
:: Markup (12) -
RDoc
:: Options (48) -
RSS
:: NotWellFormedError (12) -
RubyVM
:: AbstractSyntaxTree :: Node (14) -
Shell
:: SystemCommand (6) - String (144)
- StringIO (24)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) - Tracer (12)
-
Zlib
:: GzipReader (120)
モジュール
- Enumerable (12)
-
OpenSSL
:: Buffering (24) -
RDoc
:: Text (12)
キーワード
- [] (72)
-
add
_ trace _ func (12) - binread (12)
-
break
_ on _ newline (12) -
break
_ on _ newline= (12) - chunk (12)
-
class
_ eval (12) -
const
_ source _ location (12) - convert (24)
- dir (24)
- each (30)
-
each
_ codepoint (24) -
each
_ line (24) - encoding (12)
- eof (12)
- eof? (24)
- eval (12)
- execute (12)
-
field
_ size _ limit (12) -
first
_ lineno (7) -
get
_ line _ types (12) - gets (12)
-
include
_ line _ numbers (12) -
inline
_ source (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) -
instance
_ eval (12) -
last
_ lineno (7) - line= (12)
-
line
_ numbers (12) -
line
_ numbers= (12) -
line
_ width (12) -
line
_ width= (12) - lineno (24)
- lineno= (12)
- lines (24)
- list (24)
- ls (24)
-
module
_ eval (12) - pread (8)
-
readable
_ atfer _ eof? (12) - readline (120)
- readlines (132)
- reopen (12)
- retrlines (12)
- rewind (24)
-
set
_ trace _ func (12) - slice (72)
-
source
_ location (7) - storlines (24)
-
strip
_ newlines (12) - summarize (24)
-
to
_ a (36) -
to
_ proc (6) -
to
_ yaml (12) - top (12)
-
trace
_ func (24) -
use
_ readline (12) -
use
_ readline? (12) - yaml (12)
検索結果
先頭5件
-
IRB
:: ReadlineInputMethod # line(line _ no) -> String (24225.0) -
引数 line_no で指定した過去の入力を行単位で返します。
...引数 line_no で指定した過去の入力を行単位で返します。
@param line_no 取得する行番号を整数で指定します。... -
IRB
:: StdioInputMethod # line(line _ no) -> String (21225.0) -
引数 line_no で指定した過去の入力を行単位で返します。
...引数 line_no で指定した過去の入力を行単位で返します。
@param line_no 取得する行番号を整数で指定します。... -
CSV
:: FieldInfo # line -> Integer (21108.0) -
行番号を返します。
...V.new("date1,date2,date3\n2018-07-09,2018-07-10\n2018-08-09,2018-08-10", headers: true)
csv.convert do |field,field_info|
p field_info.line
Date.parse(field)
end
p csv.to_a
# => 2
# => 2
# => 3
# => 3
# => [#<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299161j)> "date2":#<Date: 2......018-07-10 ((2458310j,0s,0n),+0s,2299161j)> "date3":nil>, ...]
//}... -
RSS
:: NotWellFormedError # line (21102.0) -
@todo
...@todo... -
Psych
:: Emitter # line _ width=(width) (12308.0) -
「好ましい」行幅を整数値で設定します。
...「好ましい」行幅を整数値で設定します。
@param width 好ましい行幅
@see Psych::Emitter#line_width... -
IO
# readlines(limit , chomp: false) -> [String] (12261.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...", "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(",") } # => ["line1,"......, "\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", chomp: tr......ue) } # => ["line1,", "line2,", "\nline3,\n"]
//}
@see $/, IO#gets... -
IO
# readlines(rs = $ / , chomp: false) -> [String] (12261.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...", "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(",") } # => ["line1,"......, "\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", chomp: tr......ue) } # => ["line1,", "line2,", "\nline3,\n"]
//}
@see $/, IO#gets... -
IO
# readlines(rs , limit , chomp: false) -> [String] (12261.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...", "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(",") } # => ["line1,"......, "\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", chomp: tr......ue) } # => ["line1,", "line2,", "\nline3,\n"]
//}
@see $/, IO#gets... -
IO
# readlines(limit) -> [String] (12231.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...", "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(",") } # => ["line1,"......, "\nline2,", "\nline3,", "\n"]
//}
@see $/, IO#gets... -
IO
# readlines(rs = $ / ) -> [String] (12231.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...", "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(",") } # => ["line1,"......, "\nline2,", "\nline3,", "\n"]
//}
@see $/, IO#gets... -
IO
# readlines(rs , limit) -> [String] (12231.0) -
データを全て読み込んで、その各行を要素としてもつ配列を返します。 既に EOF に達していれば空配列 [] を返します。
...", "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(",") } # => ["line1,"......, "\nline2,", "\nline3,", "\n"]
//}
@see $/, IO#gets... -
RDoc
:: Options # include _ line _ numbers -> bool (12218.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。...