種類
ライブラリ
- English (12)
- ビルトイン (1156)
-
cgi
/ core (12) - csv (60)
- getoptlong (36)
- json (396)
-
minitest
/ unit (1) - mkmf (24)
-
net
/ ftp (24) -
net
/ http (12) -
net
/ imap (36) -
net
/ pop (12) - observer (12)
- open-uri (12)
- open3 (48)
- openssl (312)
- pathname (36)
- pty (24)
- rake (12)
-
rdoc
/ parser (12) -
rdoc
/ parser / c (12) -
rdoc
/ parser / ruby (12) -
rdoc
/ parser / simple (12) -
rdoc
/ stats (72) -
rdoc
/ top _ level (12) -
ripper
/ lexer (24) -
rubygems
/ user _ interaction (60) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
webrick
/ httpresponse (48) -
webrick
/ httpstatus (120) -
webrick
/ server (12)
クラス
- CGI (12)
- CSV (60)
- Dir (12)
- Encoding (48)
-
Enumerator
:: Lazy (24) - File (84)
-
File
:: Stat (516) -
Gem
:: StreamUI (60) - GetoptLong (36)
- IO (12)
-
JSON
:: State (252) -
MiniTest
:: Unit (1) -
Net
:: FTP (24) -
Net
:: IMAP (12) -
Net
:: IMAP :: StatusData (24) -
Net
:: POP3 (12) -
OpenSSL
:: OCSP :: BasicResponse (24) -
OpenSSL
:: OCSP :: Response (36) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: SSL :: SSLSocket (12) -
PTY
:: ChildExited (12) - Pathname (36)
-
Process
:: Status (180) -
RDoc
:: Options (24) -
RDoc
:: Parser (12) -
RDoc
:: Parser :: C (12) -
RDoc
:: Parser :: Ruby (12) -
RDoc
:: Parser :: Simple (12) -
RDoc
:: Stats (72) -
RDoc
:: TopLevel (12) - Random (24)
- Ripper (8)
-
Ripper
:: Lexer (16) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - SystemExit (24)
- Thread (21)
- TracePoint (11)
-
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPResponse (48)
モジュール
- FileUtils (12)
- GC (48)
- JSON (36)
-
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) - Kernel (72)
- Marshal (24)
- Observable (12)
- Open3 (48)
-
OpenSSL
:: OCSP (216) -
OpenSSL
:: Random (12) -
OpenURI
:: Meta (12) - PTY (12)
- Process (68)
-
WEBrick
:: HTTPStatus (96)
キーワード
-
$ ? (12) -
$ CHILD _ STATUS (12) - & (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (12)
- == (12)
- >> (12)
- GC (12)
- HTTPMultiStatus (12)
-
HTTP
_ STATUS (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 1 . 0 (4) - NonAuthoritativeInformation (12)
-
RESPONSE
_ STATUS _ INTERNALERROR (12) -
RESPONSE
_ STATUS _ MALFORMEDREQUEST (12) -
RESPONSE
_ STATUS _ SIGREQUIRED (12) -
RESPONSE
_ STATUS _ SUCCESSFUL (12) -
RESPONSE
_ STATUS _ TRYLATER (12) -
RESPONSE
_ STATUS _ UNAUTHORIZED (12) -
REVOKED
_ STATUS _ AFFILIATIONCHANGED (12) -
REVOKED
_ STATUS _ CACOMPROMISE (12) -
REVOKED
_ STATUS _ CERTIFICATEHOLD (12) -
REVOKED
_ STATUS _ CESSATIONOFOPERATION (12) -
REVOKED
_ STATUS _ KEYCOMPROMISE (12) -
REVOKED
_ STATUS _ NOSTATUS (12) -
REVOKED
_ STATUS _ REMOVEFROMCRL (12) -
REVOKED
_ STATUS _ SUPERSEDED (12) -
REVOKED
_ STATUS _ UNSPECIFIED (12) - RequestURITooLarge (12)
-
STATELESS
_ ISO _ 2022 _ JP (12) -
STATELESS
_ ISO _ 2022 _ JP _ KDDI (12) -
STATUS
_ STARTED (12) -
STATUS
_ TERMINATED (12) -
STATUS
_ YET (12) -
Stateless
_ ISO _ 2022 _ JP (12) -
Stateless
_ ISO _ 2022 _ JP _ KDDI (12) -
V
_ CERTSTATUS _ GOOD (12) -
V
_ CERTSTATUS _ REVOKED (12) -
V
_ CERTSTATUS _ UNKNOWN (12) - [] (24)
-
add
_ status (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
allow
_ nan? (12) -
array
_ nl (12) -
ascii
_ only? (12) - atime (12)
- attr (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
-
buffer
_ initial _ length (12) - capture2 (12)
- capture2e (12)
- capture3 (12)
- changed (12)
- chardev? (12)
- check (12)
-
check
_ circular? (12) - chown (36)
- chunk (12)
-
client
_ error? (12) - configure (12)
- coredump? (12)
- create (12)
- ctime (12)
-
debug
_ mode (12) - depth (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dump (24)
-
e
_ option _ supplied (12) - error? (12)
- executable? (12)
-
executable
_ real? (12) - exit (24)
- exit! (24)
- exited? (12)
- exitstatus (12)
- file? (12)
-
file
_ stat (12) -
from
_ state (12) - ftype (12)
- generate (24)
- gid (12)
- grpowned? (12)
- indent (12)
- info? (12)
- ino (12)
- inspect (12)
-
last
_ status (8) -
latest
_ gc _ info (24) - lchmod (12)
- lchown (12)
- lex (16)
- lstat (54)
- mailbox (12)
-
max
_ nesting (12) - merge (12)
- mkdir (12)
- mode (12)
- mtime (12)
- new (84)
- nextc (12)
- nlink (12)
-
num
_ classes (12) -
num
_ files (12) -
num
_ methods (12) -
num
_ modules (12) -
object
_ nl (12) - open (48)
- owned? (12)
- parse (8)
-
parser
_ for (12) - pid (12)
- pipe? (12)
- pipeline (12)
- print (12)
-
quirks
_ mode (12) -
quirks
_ mode? (12) -
rb
_ protect (12) - rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - readable? (12)
-
readable
_ real? (12) -
reason
_ phrase (12) - redirect? (12)
-
report
_ on _ exception= (9) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - say (12)
-
server
_ error? (12) -
session
_ cache _ stats (12) -
set
_ debug _ output (12) -
set
_ error (12) -
set
_ redirect (12) - setgid? (12)
- setuid? (12)
- sh (12)
- signaled? (12)
- size (12)
- size? (12)
-
slice
_ before (12) - socket? (12)
- space (12)
-
space
_ before (12) - stat (101)
- state (48)
-
static
_ path (12) -
static
_ path= (12) - status (121)
- status? (12)
-
status
_ line (12) -
status
_ string (12) - sticky? (12)
- stopped? (12)
- stopsig (12)
- success? (24)
- symlink? (12)
-
terminate
_ interaction (12) - termsig (12)
-
to
_ h (12) -
to
_ hash (12) -
to
_ i (12) -
to
_ json (108) -
to
_ s (12) -
try
_ static _ assert (24) - uid (12)
- unparse (12)
- wait2 (12)
- waitall (12)
- waitpid2 (12)
-
warn
_ unless _ e _ option (12) -
warning
_ unless _ e _ option (12) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - zero? (12)
検索結果
先頭5件
-
File
:: Stat (18024.0) -
ファイルの情報を格納したオブジェクトのクラス。
...ある場合はそれと同じ働きをします。ただ、
ファイル名を引数に取るかわりに Stat 自身について判定する点が違います。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
p FileTest.directory?($0) #=> false
//}
1.8 以降では、属性メソッ......dev デバイス番号(ファイルシステム)
dev_major dev の major 番号部
dev_minor dev の minor 番号部
ino i-node 番号
mode ファイルモード
nlink ハードリンクの数
uid オーナーのユーザID
gid オー......I/Oのブロックサイズ
blocks 割り当てられているブロック数
atime 最終アクセス時刻
mtime 最終更新時刻
ctime 最終状態変更時刻(状態の変更とは chmod などによるもので、Unix では i-node の変更を意味します)... -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ NOSTATUS -> Integer (12300.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 BasicResponse にコードが含まれていないことを意味します。
...OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
BasicResponse にコードが含まれていないことを意味します。... -
JSON
:: State . from _ state(options) -> JSON :: State (9300.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を
返します。options が JSON::State のイ......いない JSON::State の
インスタンスを返します。
//emlist[例 Hash を指定][ruby]{
require "json"
json_state = JSON::State.from_state(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{......require "json"
json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処理を実行する
copy = JSON::State.from_state(json_state)
copy.class # => JSON::Ext::Generator::State
copy.indent # => "\t"
//}... -
Process
:: Status # exitstatus -> Integer | nil (9200.0) -
exited? が真の場合プロセスが返した終了ステータスの整数を、そ うでない場合は nil を返します。
exited? が真の場合プロセスが返した終了ステータスの整数を、そ
うでない場合は nil を返します。 -
File
. lstat(filename) -> File :: Stat (6373.0) -
File.statと同様ですが、シンボリックリンクに関してリンクそのものの 情報を File::Stat として返します。lstat(2) を実装していないシステムでは、File.stat と同じです。
...File.statと同様ですが、シンボリックリンクに関してリンクそのものの
情報を File::Stat として返します。lstat(2) を実装していないシステムでは、File.stat と同じです。
@param filename ファイル名を表す文字列を指定します。
@ra......ise Errno::EXXX 情報の取得に失敗した場合に発生します。
//emlist[例][ruby]{
# link.rb は t.rb のシンボリックリンク
File.lstat("link.rb") == File.stat("t.rb") # => false
File.stat("link.rb") == File.stat("t.rb") # => true
//}
@see IO#stat, File#lstat... -
File
# lstat -> File :: Stat (6363.0) -
ファイルの状態を含む File::Stat オブジェクトを生成して返します。 シンボリックリンクに関してリンクそのものの情報を返します。 lstat(2) を実装していないシステムでは、IO#statと同じです。
...ファイルの状態を含む File::Stat オブジェクトを生成して返します。
シンボリックリンクに関してリンクそのものの情報を返します。
lstat(2) を実装していないシステムでは、IO#statと同じです。
@raise Errno::EXXX 失敗した場合......ose されている場合に発生します。
//emlist[例][ruby]{
# testlink は testfile のシンボリックリンク
File.open("testlink") do |f|
p f.lstat == File.stat("testfile") # => false
p f.stat == File.stat("testfile") # => true
end
//}
@see IO#stat, File.stat, File.lstat... -
File
. stat(filename) -> File :: Stat (6354.0) -
filename の情報を含む File::Stat オブジェクトを生成し て返します。
...File::Stat オブジェクトを生成し
て返します。
@param filename ファイル名を表す文字列を指定します。
@raise Errno::EXXX 情報の取得に失敗した場合に発生します。
//emlist[例][ruby]{
File.stat("testfile").class # => File::Stat
File.stat("testfile......").mtime # => 2017-12-10 01:13:56 +0900
//}
@see IO#stat, File#lstat... -
IO
# stat -> File :: Stat (6342.0) -
ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。
...ファイルのステータスを含む File::Stat オブジェクトを生成して
返します。
@raise Errno::EXXX ステータスの読み込みに失敗した場合に発生します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
IO.write("......testfile", "This is line one\nThis is line two\n")
File.open("testfile") do |f|
s = f.stat
"%o" % s.mode # => "100644"
s.blksize # => 4096
s.atime # => 2018-03-01 23:19:59 +0900
end
//}
@see File#lstat, File.stat, File.lstat... -
CSV
# stat -> File :: Stat (6324.0) -
IO#stat に委譲します。
...IO#stat に委譲します。
@see IO#stat...