別のキーワード
ライブラリ
- ビルトイン (162)
-
net
/ ftp (20) -
net
/ http (24) - optparse (12)
- pathname (12)
- rake (48)
- resolv (60)
- shell (30)
-
shell
/ command-processor (30) -
shell
/ filter (36) -
webrick
/ httprequest (12) -
webrick
/ httputils (24)
クラス
-
ARGF
. class (144) - Dir (12)
- IO (6)
-
Net
:: FTP (20) -
Net
:: HTTP (24) - OptionParser (12)
- Pathname (12)
-
Rake
:: FileTask (24) -
Resolv
:: DNS (36) -
Resolv
:: DNS :: Resource :: TXT (24) - Shell (30)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (36) - String (12)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPUtils :: FormData (24)
モジュール
-
Rake
:: TaskManager (12)
キーワード
- < (6)
- argv (12)
- cat (18)
-
create
_ rule (12) - data (12)
-
each
_ char (24) -
each
_ codepoint (24) -
each
_ resource (12) - echo (18)
- filename (12)
- filename= (12)
- get (24)
- getresource (12)
- getresources (12)
- gets (36)
- glob (18)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - load (12)
- mlsd (20)
- needed? (12)
- out (18)
- pathmap (12)
- query (12)
- read (24)
-
set
_ encoding _ by _ bom (6) - strings (12)
-
sub
_ ext (12) - tee (18)
-
to
_ io (12)
検索結果
先頭5件
-
Resolv
:: DNS :: Resource :: TXT # data -> String (3017.0) -
TXT レコードの最初の文字列を返します。
...TXT レコードの最初の文字列を返します。... -
Resolv
:: DNS :: Resource :: TXT # strings -> [String] (3017.0) -
TXT レコードの文字列を配列で返します。
...TXT レコードの文字列を配列で返します。... -
ARGF
. class # gets(limit) -> String | nil (49.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt......# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte,... -
ARGF
. class # gets(limit , chomp: false) -> String | nil (49.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt......# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte,... -
ARGF
. class # gets(rs = $ / ) -> String | nil (49.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt......# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte,... -
ARGF
. class # gets(rs = $ / , chomp: false) -> String | nil (49.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt......# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte,... -
ARGF
. class # gets(rs , limit) -> String | nil (49.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt......# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte,... -
ARGF
. class # gets(rs , limit , chomp: false) -> String | nil (49.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...est.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt......# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@see Kernel.#gets, IO#gets, ARGF.class#getbyte,... -
ARGF
. class # inplace _ mode -> String | nil (43.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
....txt
# $ ruby -i.bak test.rb test.txt
# $ cat test.txt # => "TEST"
# $ cat test.txt.bak # => "test"
# test.rb
ARGF.inplace_mode # => ".bak"
ARGF.each_line {|e|print e.upcase} # => "TEST"
例:
# $ echo "test" > test.txt
# $ ruby test.rb test.txt
# $ cat test.txt... -
ARGF
. class # each _ char -> Enumerator (25.0) -
レシーバに含まれる文字を一文字ずつブロックに渡して評価します。
...た場合は、Enumerator オブジェクトを生成し
て返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_char # => #<Enumerator: ARGF:each_char>
ARGF.each_char{|e|p e}
# => "l"... -
ARGF
. class # each _ char { |c| . . . } -> self (25.0) -
レシーバに含まれる文字を一文字ずつブロックに渡して評価します。
...た場合は、Enumerator オブジェクトを生成し
て返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_char # => #<Enumerator: ARGF:each_char>
ARGF.each_char{|e|p e}
# => "l"... -
ARGF
. class # each _ codepoint -> Enumerator (25.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...。
ブロックを省略した場合には、Enumerator を返します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoin...