るりまサーチ

最速Rubyリファレンスマニュアル検索!
1598件ヒット [1-100件を表示] (0.118秒)
トップページ > クエリ:I[x] > クエリ:v[x] > クエリ:ERROR[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

キーワード

検索結果

<< 1 2 3 ... > >>

Encoding::InvalidByteSequenceError#destination_encoding -> Encoding (24300.0)

エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。

...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。

@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding...

Encoding::InvalidByteSequenceError#destination_encoding_name -> String (24300.0)

エラーを発生させた変換の変換先のエンコーディングを文字列で返します。

...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。

@see Encoding::InvalidByteSequenceError#destination_encoding...

Encoding::UndefinedConversionError#destination_encoding -> Encoding (24300.0)

エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。

...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。

@see Encoding::UndefinedConversionError#source_encoding...

Encoding::UndefinedConversionError#destination_encoding_name -> String (24300.0)

エラーを発生させた変換の変換先のエンコーディングを文字列で返します。

...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。

@see Encoding::UndefinedConversionError#destination_encoding...

Logger::Severity::ERROR -> Integer (24201.0)

ログレベル:エラーを表す定数です。

ログレベル:エラーを表す定数です。

絞り込み条件を変える

Encoding::InvalidByteSequenceError#incomplete_input? -> bool (24200.0)

エラー発生時に入力文字列が不足している場合に真を返します。

...//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")

begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end

begin
ec.convert("ab...
...c\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}...

RSS::NotAvailableValueError (24000.0)

IO.popen([env = {}, [cmdname, arg0], *args, execopt={}], mode = "r", opt={}) -> IO (23212.0)

サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

p io = IO.popen("cat", "r+") # => #<IO:fd 4>
i
o.puts "foo"
i
o.close_write
p io.gets # => "foo\n"

サブプロセスを指定する方法は2...
...ションは IO.new と共通です。
つまり、 :external_encoding や :unsetenv_others が指定できます。
オプションの詳しい意味は Kernel.#spawn や IO.new を参照してください。

# nkfプロセスから得られる文字列を EUC-JP と指定する
# IO.new な...
...ション
I
O.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}

# 上と同じ、配列の外側でもオプションが指定できる
I
O.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}

@param env 環境...

IO.popen([env = {}, cmdname, *args, execopt={}], mode = "r", opt={}) -> IO (23212.0)

サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

p io = IO.popen("cat", "r+") # => #<IO:fd 4>
i
o.puts "foo"
i
o.close_write
p io.gets # => "foo\n"

サブプロセスを指定する方法は2...
...ションは IO.new と共通です。
つまり、 :external_encoding や :unsetenv_others が指定できます。
オプションの詳しい意味は Kernel.#spawn や IO.new を参照してください。

# nkfプロセスから得られる文字列を EUC-JP と指定する
# IO.new な...
...ション
I
O.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}

# 上と同じ、配列の外側でもオプションが指定できる
I
O.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}

@param env 環境...

IO.popen(env = {}, [[cmdname, arg0], *args, execopt={}], mode = "r", opt={}) -> IO (23212.0)

サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

p io = IO.popen("cat", "r+") # => #<IO:fd 4>
i
o.puts "foo"
i
o.close_write
p io.gets # => "foo\n"

サブプロセスを指定する方法は2...
...ションは IO.new と共通です。
つまり、 :external_encoding や :unsetenv_others が指定できます。
オプションの詳しい意味は Kernel.#spawn や IO.new を参照してください。

# nkfプロセスから得られる文字列を EUC-JP と指定する
# IO.new な...
...ション
I
O.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}

# 上と同じ、配列の外側でもオプションが指定できる
I
O.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}

@param env 環境...

絞り込み条件を変える

<< 1 2 3 ... > >>