36件ヒット
[1-36件を表示]
(0.069秒)
ライブラリ
- ビルトイン (12)
-
irb
/ context (12) - rake (12)
クラス
- IO (12)
-
IRB
:: Context (12) -
Rake
:: FileList (12)
キーワード
-
external
_ encoding (12) -
prompt
_ mode (12)
検索結果
先頭3件
-
Rake
:: FileList # ext(newext = & # 39;& # 39;) -> Rake :: FileList (18342.0) -
各要素に String#ext を適用した新しい Rake::FileList を返します。
...各要素に String#ext を適用した新しい Rake::FileList を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb"......, "test3.rb")
file_list.ext(".erb") # => ["test1.erb", "test2.erb", "test3.erb"]
end
//}
@see String#ext... -
IO
# external _ encoding -> Encoding | nil (6229.0) -
IO の外部エンコーディングを返します。 外部エンコーディングが指定されていない場合は nil を返します。 ただし読み込み専用モードの場合は Encoding.default_external になります。
...ディングが指定されていない場合は nil を返します。
ただし読み込み専用モードの場合は Encoding.default_external になります。
//emlist[例][ruby]{
IO.write("testfile", "abcde")
File.open("testfile") { |f| p f.external_encoding } # => #<Encoding:UTF-8>
//}... -
IRB
:: Context # prompt _ mode -> Symbol (3113.0) -
現在のプロンプトモードを Symbol で返します。
...す。
そうでない場合は、:DEFAULT、:CLASSIC、:SIMPLE、:INF_RUBY、:XMP、:NULL
のいずれかを返します。
定義済みのプロンプトモードの内容については、IRB.conf[:PROMPT][mode] を
参照してください。
@see IRB::Context#prompt_mode=, lib:irb#customize_p...