961件ヒット
[201-300件を表示]
(0.127秒)
別のキーワード
クラス
-
Enumerator
:: Lazy (24) - File (12)
-
File
:: Stat (504) - IO (12)
-
JSON
:: State (216) - Pathname (12)
-
Rake
:: Application (12) -
Ripper
:: Lexer (16) - Thread (21)
モジュール
- FileUtils (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
OpenURI
:: Meta (12)
キーワード
- <=> (12)
-
abort
_ on _ exception= (12) -
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) - atime (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
- chardev? (12)
-
check
_ circular? (12) - chown (12)
- chunk (12)
- configure (12)
- ctime (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- executable? (12)
-
executable
_ real? (12) - file? (12)
- ftype (12)
- gid (12)
- grpowned? (12)
- indent (12)
- indent= (12)
- ino (12)
- lex (8)
- lstat (12)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- mode (12)
- mtime (12)
- nlink (12)
-
object
_ nl (12) -
object
_ nl= (12) - owned? (12)
- parse (8)
- pipe? (12)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - readable? (12)
-
readable
_ real? (12) -
report
_ on _ exception= (9) - setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
-
slice
_ before (12) - socket? (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - status (12)
- sticky? (12)
- symlink? (12)
-
to
_ h (12) -
to
_ hash (12) -
to
_ json (108) -
tty
_ output= (12) - uid (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - zero? (12)
検索結果
先頭5件
-
File
:: Stat # writable? -> bool (12119.0) -
書き込み可能な時に真を返します。
...書き込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).writable? #=> true
//}... -
File
:: Stat # writable _ real? -> bool (12119.0) -
実ユーザ/実グループによって書き込み可能な時に真を返します。
...実ユーザ/実グループによって書き込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).writable_real? #=> true
//}... -
File
:: Stat # atime -> Time (9219.0) -
最終アクセス時刻を返します。
...最終アクセス時刻を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.atime.to_a #=> [45, 5, 21, 5, 9, 2007, 3, 248, false, "\223\214\213\236 (\225W\217\200\216\236) "]
//}
@see Time... -
File
:: Stat # ctime -> Time (9219.0) -
最終状態変更時刻を返します。 (状態の変更とは chmod などによるもので、Unix では i-node の変更を意味します)
...最終状態変更時刻を返します。
(状態の変更とは chmod などによるもので、Unix では i-node の変更を意味します)
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.ctime.to_f #=> 1188719843.0
//}
@see Time... -
File
:: Stat # mtime -> Time (9219.0) -
最終更新時刻を返します。
...最終更新時刻を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.mtime #=> Wed Sep 05 20:42:18 +0900 2007
//}
@see Time... -
File
:: Stat # birthtime -> Time (9137.0) -
作成された時刻を返します。
...。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
//emlist[][ruby]{
File.write("testfile", "foo")
sleep 10
File.write("testfile", "bar")
sleep 10
File.chmod(0644, "testfile")
sleep 10
File.read("testfile")
File.stat("testfile").birthtime #=> 2014......-02-24 11:19:17 +0900
File.stat("testfile").mtime #=> 2014-02-24 11:19:27 +0900
File.stat("testfile").ctime #=> 2014-02-24 11:19:37 +0900
File.stat("testfile").atime #=> 2014-02-24 11:19:47 +0900
//}... -
JSON
:: State # indent -> String (9137.0) -
インデントに使用する文字列を返します。
...インデントに使用する文字列を返します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
//}... -
JSON
:: State # indent=(string) (9137.0) -
インデントに使用する文字列をセットします。
...string インデントに使用する文字列を指定します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.......indent = " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}... -
File
:: Stat # ftype -> String (9125.0) -
ファイルのタイプを表す文字列を返します。
...のうちのいずれかです。
"file"
"directory"
"characterSpecial"
"blockSpecial"
"fifo"
"link"
"socket"
"unknown"
//emlist[例][ruby]{
fs = File::Stat.new($0)
p fs.ftype #=> "file"
p File::Stat.new($:[0]).ftype #=> "directory"
//}
1.8 以降では、属性メソッドが...