るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.251秒)
トップページ > バージョン:2.4.0[x] > 種類:インスタンスメソッド[x] > クエリ:r[x] > クエリ:t[x] > クエリ:>[x] > クエリ:replacement=[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. fiddle type_size_t
  4. matrix t
  5. t61string new

ライブラリ

クラス

検索結果

Encoding::Converter#replacement=(string) (90940.0)

置換文字を設定します。

置換文字を設定します。

@param string 変換器に設定する置換文字

//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "us-ascii", :undef => :replace)
ec.replacement = "<undef>"
p ec.convert("a \u3042 b") #=> "a <undef> b"
//}