2420件ヒット
[101-200件を表示]
(0.038秒)
ライブラリ
- ビルトイン (1484)
- csv (36)
- erb (36)
- fiddle (12)
-
irb
/ cmd / load (36) - logger (12)
- mkmf (24)
-
net
/ http (96) - optparse (12)
- pathname (204)
- rake (300)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) - ripper (12)
-
ripper
/ filter (12) -
rubygems
/ installer (12) - un (48)
-
webrick
/ httprequest (12) - win32ole (12)
- zlib (24)
クラス
-
ARGF
. class (96) - BasicObject (24)
- Binding (19)
- CSV (36)
- Class (12)
- Dir (23)
- ERB (36)
-
Fiddle
:: Function (12) - File (132)
-
File
:: Stat (504) -
Gem
:: Installer (12) - IO (550)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Logger (12)
- Method (26)
-
Net
:: HTTP (48) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - Object (12)
- OptionParser (12)
- Pathname (204)
- Proc (14)
-
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (204) -
Rake
:: FileTask (24) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) - Ripper (12)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (48) - String (12)
-
WEBrick
:: HTTPRequest (12) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (12)
- FileUtils (12)
- Kernel (72)
-
Rake
:: Cloneable (24) -
Rake
:: TaskManager (12)
キーワード
- << (26)
- <=> (12)
- == (12)
- >> (14)
-
absolute
_ path (12) -
add
_ row (12) - advise (12)
- ascend (24)
- atime (36)
-
base
_ label (12) - basename (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
-
body
_ stream (12) -
body
_ stream= (12) - call (12)
- chardev? (12)
- chmod (24)
- chown (24)
- chunk (12)
- cleanpath (12)
-
clear
_ exclude (12) - clone (24)
- close (24)
- closed? (12)
- count (12)
-
create
_ makefile (12) - ctime (36)
-
def
_ class (12) - descend (24)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dirname (12)
- dup (24)
- each (72)
-
each
_ byte (24) -
each
_ codepoint (24) -
each
_ filename (12) -
each
_ line (72) - egrep (12)
- eval (12)
-
excluded
_ from _ list? (12) - executable? (12)
-
executable
_ real? (12) - execute (36)
- existing (12)
- existing! (12)
- ext (12)
-
external
_ encoding (12) - fcntl (12)
- fdatasync (12)
- file? (12)
- filename (48)
- filename= (12)
- fileno (23)
- finish (12)
- flock (12)
- flush (12)
- fnmatch (12)
-
formatted
_ program _ filename (12) - formatter (12)
- ftype (12)
- get (24)
- getbyte (12)
- getc (12)
- gid (12)
- grpowned? (12)
- gsub! (12)
- helpfile (12)
- import (12)
- ino (12)
-
inplace
_ mode= (12) -
install
_ rb (12) -
instance
_ eval (24) -
internal
_ encoding (12) -
is
_ a? (12) - isatty (12)
-
kind
_ of? (12) - label (12)
- load (36)
- lstat (12)
- mode (12)
- mtime (24)
- needed? (12)
- nlink (12)
- owned? (12)
-
package
_ files (12) -
package
_ files= (12) - parameters (12)
- path (36)
- pathmap (12)
- pipe? (12)
- pos (12)
- pos= (12)
- post (24)
- pread (8)
- puts (12)
- pwrite (8)
- query (12)
- rakefile (12)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - read (12)
-
read
_ body (24) - readable? (12)
-
readable
_ real? (12) - readbyte (24)
- readchar (12)
- readlines (36)
- realpath (24)
- reopen (36)
- resolve (12)
-
respond
_ to? (12) - rm (12)
-
set
_ encoding _ by _ bom (6) - setgid? (12)
- setuid? (12)
- size (24)
- size? (12)
- socket? (12)
-
source
_ location (7) - split (12)
- stat (12)
- sticky? (12)
- sub! (12)
- superclass (12)
- symlink? (12)
- sync (12)
-
synthesize
_ file _ task (12) - syswrite (12)
- tell (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ i (12) -
to
_ path (12) -
to
_ s (24) - touch (12)
- truncate (12)
- tty? (12)
- uid (12)
-
wait
_ writable (12) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (12)
- zero? (12)
検索結果
先頭5件
-
File
# ctime -> Time (9037.0) -
状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
...に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#mtime, File#birthtime... -
File
# mtime -> Time (9037.0) -
最終更新時刻を Time オブジェクトとして返します。
...に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#ctime, File#birthtime... -
File
# atime -> Time (9031.0) -
最終アクセス時刻を Time オブジェクトとして返します。
...れている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.atime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#ctime, File#mtime... -
File
# chown(owner , group) -> 0 (9031.0) -
ファイルのオーナーとグループを変更します。
...ます。
@raise Errno::EXXX 変更に失敗した場合に発生します。
//emlist[例][ruby]{
File.open("testfile") { |f| f.chown(502, 1000) } # => 0
File.stat("testfile").uid # => 502
File.stat("testfile").gid # => 1000
//}
@see File.chown... -
File
# ctime -> Time (9031.0) -
状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
...れている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#mtime... -
File
# mtime -> Time (9031.0) -
最終更新時刻を Time オブジェクトとして返します。
...ている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#ctime... -
File
# size -> Integer (9019.0) -
ファイルのサイズを返します。
...ファイルのサイズを返します。
//emlist[例][ruby]{
File.open("/dev/null") do |f|
f.size #=> 0
end
//}
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
@see File#lstat... -
File
# chmod(mode) -> 0 (9013.0) -
ファイルのモードを指定された mode に変更します。
...EXXX が発生し
ます。
@param mode chmod(2) と同様に整数で指定します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
//emlist[例][ruby]{
f = File.new("out", "w");
f.chmod(0644) #=> 0
//}... -
File
# truncate(length) -> 0 (9013.0) -
ファイルのサイズを最大 length バイトにします。
...書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX サイズの変更に失敗した場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File.open("testfile", "a") do |f|
f.truncate(5) # => 0
f.size # => 5
end
//}... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (6244.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...mlist[][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 => []>... -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (6217.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
...
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。... -
Rake
:: PackageTask # package _ files=(file _ list) (6214.0) -
パッケージに含むファイルリストを設定します。
...@param file_list ファイルリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []......package_task.package_files = FileList.new("test1.rb", "test2.rb")
package_task.package_files # => ["test1.rb", "test2.rb"]
end
//}...