るりまサーチ

最速Rubyリファレンスマニュアル検索!
249件ヒット [201-249件を表示] (0.050秒)
トップページ > クエリ:IO[x] > クエリ:write[x] > クエリ:test[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io readlines
  4. io each
  5. io each_line

ライブラリ

クラス

モジュール

キーワード

検索結果

<< < 1 2 3 >>

Rake::TaskManager#synthesize_file_task(task_name) -> Rake::FileTask | nil (25.0)

与えられたタスク名をもとにファイルタスクを合成します。

...//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app

task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO
.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_file =...

File#atime -> Time (19.0)

最終アクセス時刻を Time オブジェクトとして返します。

...トとして返します。

@raise IOError 自身が close されている場合に発生します。

@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。

//emlist[例:][ruby]{
IO
.write("testfile", "test")
File.open("testfile") { |f| f.atime } # => 2017-12-2...

File#ctime -> Time (19.0)

状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。

...どによるものです。

@raise IOError 自身が close されている場合に発生します。

@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。

//emlist[例:][ruby]{
IO
.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-2...

File#mtime -> Time (19.0)

最終更新時刻を Time オブジェクトとして返します。

...トとして返します。

@raise IOError 自身が close されている場合に発生します。

@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。

//emlist[例:][ruby]{
IO
.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-2...

Pathname#ctime -> Time (19.0)

File.ctime(self.to_s) を渡したものと同じです。

...File.ctime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require 'pathname'

IO
.write("testfile", "test")
pathname = Pathname("testfile")
pathname.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname.chmod(0755)
pathname.ctime # => 2019-01-14 00:39:52 +0900
//}

@see File.ct...

絞り込み条件を変える

<< < 1 2 3 >>