るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.047秒)

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file lstat
  4. file ctime
  5. file size

ライブラリ

クラス

検索結果

Rake::FileList#ext(newext = '') -> Rake::FileList (21354.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...#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 (6113.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>
//}...