種類
ライブラリ
- English (11)
- ビルトイン (1059)
-
cgi
/ core (11) - csv (55)
- getoptlong (33)
- json (363)
-
minitest
/ unit (1) - mkmf (22)
-
net
/ ftp (22) -
net
/ http (11) -
net
/ imap (33) -
net
/ pop (11) - observer (11)
- open-uri (11)
- open3 (44)
- openssl (286)
- pathname (33)
- pty (22)
- rake (11)
-
rdoc
/ parser (11) -
rdoc
/ parser / c (11) -
rdoc
/ parser / ruby (11) -
rdoc
/ parser / simple (11) -
rdoc
/ stats (66) -
rdoc
/ top _ level (11) -
ripper
/ lexer (21) -
rubygems
/ user _ interaction (55) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
webrick
/ httpresponse (44) -
webrick
/ httpstatus (110) -
webrick
/ server (11)
クラス
- CGI (11)
- CSV (55)
- Dir (11)
- Encoding (44)
-
Enumerator
:: Lazy (22) - File (77)
-
File
:: Stat (473) -
Gem
:: StreamUI (55) - GetoptLong (33)
- IO (11)
-
JSON
:: State (231) -
MiniTest
:: Unit (1) -
Net
:: FTP (22) -
Net
:: IMAP (11) -
Net
:: IMAP :: StatusData (22) -
Net
:: POP3 (11) -
OpenSSL
:: OCSP :: BasicResponse (22) -
OpenSSL
:: OCSP :: Response (33) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: SSL :: SSLSocket (11) -
PTY
:: ChildExited (11) - Pathname (33)
-
Process
:: Status (165) -
RDoc
:: Options (22) -
RDoc
:: Parser (11) -
RDoc
:: Parser :: C (11) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: Parser :: Simple (11) -
RDoc
:: Stats (66) -
RDoc
:: TopLevel (11) - Random (22)
- Ripper (7)
-
Ripper
:: Lexer (14) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - SystemExit (22)
- Thread (19)
- TracePoint (10)
-
WEBrick
:: GenericServer (11) -
WEBrick
:: HTTPResponse (44)
モジュール
- FileUtils (11)
- GC (44)
- JSON (33)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (66)
- Marshal (22)
- Observable (11)
- Open3 (44)
-
OpenSSL
:: OCSP (198) -
OpenSSL
:: Random (11) -
OpenURI
:: Meta (11) - PTY (11)
- Process (62)
-
WEBrick
:: HTTPStatus (88)
キーワード
-
$ ? (11) -
$ CHILD _ STATUS (11) - & (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
- == (11)
- >> (11)
- GC (11)
- HTTPMultiStatus (11)
-
HTTP
_ STATUS (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 1 . 0 (3) - NonAuthoritativeInformation (11)
-
RESPONSE
_ STATUS _ INTERNALERROR (11) -
RESPONSE
_ STATUS _ MALFORMEDREQUEST (11) -
RESPONSE
_ STATUS _ SIGREQUIRED (11) -
RESPONSE
_ STATUS _ SUCCESSFUL (11) -
RESPONSE
_ STATUS _ TRYLATER (11) -
RESPONSE
_ STATUS _ UNAUTHORIZED (11) -
REVOKED
_ STATUS _ AFFILIATIONCHANGED (11) -
REVOKED
_ STATUS _ CACOMPROMISE (11) -
REVOKED
_ STATUS _ CERTIFICATEHOLD (11) -
REVOKED
_ STATUS _ CESSATIONOFOPERATION (11) -
REVOKED
_ STATUS _ KEYCOMPROMISE (11) -
REVOKED
_ STATUS _ NOSTATUS (11) -
REVOKED
_ STATUS _ REMOVEFROMCRL (11) -
REVOKED
_ STATUS _ SUPERSEDED (11) -
REVOKED
_ STATUS _ UNSPECIFIED (11) - RequestURITooLarge (11)
-
STATELESS
_ ISO _ 2022 _ JP (11) -
STATELESS
_ ISO _ 2022 _ JP _ KDDI (11) -
STATUS
_ STARTED (11) -
STATUS
_ TERMINATED (11) -
STATUS
_ YET (11) -
Stateless
_ ISO _ 2022 _ JP (11) -
Stateless
_ ISO _ 2022 _ JP _ KDDI (11) -
V
_ CERTSTATUS _ GOOD (11) -
V
_ CERTSTATUS _ REVOKED (11) -
V
_ CERTSTATUS _ UNKNOWN (11) - [] (22)
-
add
_ status (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) -
allow
_ nan? (11) -
array
_ nl (11) -
ascii
_ only? (11) - atime (11)
- attr (11)
- birthtime (11)
- blksize (11)
- blockdev? (11)
- blocks (11)
-
buffer
_ initial _ length (11) - capture2 (11)
- capture2e (11)
- capture3 (11)
- changed (11)
- chardev? (11)
- check (11)
-
check
_ circular? (11) - chown (33)
- chunk (11)
-
client
_ error? (11) - configure (11)
- coredump? (11)
- create (11)
- ctime (11)
-
debug
_ mode (11) - depth (11)
- dev (11)
-
dev
_ major (11) -
dev
_ minor (11) - directory? (11)
- dump (22)
-
e
_ option _ supplied (11) - error? (11)
- executable? (11)
-
executable
_ real? (11) - exit (22)
- exit! (22)
- exited? (11)
- exitstatus (11)
- file? (11)
-
file
_ stat (11) -
from
_ state (11) - ftype (11)
- generate (22)
- gid (11)
- grpowned? (11)
- indent (11)
- info? (11)
- ino (11)
- inspect (11)
-
last
_ status (7) -
latest
_ gc _ info (22) - lchmod (11)
- lchown (11)
- lex (14)
- lstat (51)
- mailbox (11)
-
max
_ nesting (11) - merge (11)
- mkdir (11)
- mode (11)
- mtime (11)
- new (77)
- nextc (11)
- nlink (11)
-
num
_ classes (11) -
num
_ files (11) -
num
_ methods (11) -
num
_ modules (11) -
object
_ nl (11) - open (44)
- owned? (11)
- parse (7)
-
parser
_ for (11) - pid (11)
- pipe? (11)
- pipeline (11)
- print (11)
-
quirks
_ mode (11) -
quirks
_ mode? (11) -
rb
_ protect (11) - rdev (11)
-
rdev
_ major (11) -
rdev
_ minor (11) - readable? (11)
-
readable
_ real? (11) -
reason
_ phrase (11) - redirect? (11)
-
report
_ on _ exception= (8) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - say (11)
-
server
_ error? (11) -
session
_ cache _ stats (11) -
set
_ debug _ output (11) -
set
_ error (11) -
set
_ redirect (11) - setgid? (11)
- setuid? (11)
- sh (11)
- signaled? (11)
- size (11)
- size? (11)
-
slice
_ before (11) - socket? (11)
- space (11)
-
space
_ before (11) - stat (94)
- state (44)
-
static
_ path (11) -
static
_ path= (11) - status (111)
- status? (11)
-
status
_ line (11) -
status
_ string (11) - sticky? (11)
- stopped? (11)
- stopsig (11)
- success? (22)
- symlink? (11)
-
terminate
_ interaction (11) - termsig (11)
-
to
_ h (11) -
to
_ hash (11) -
to
_ i (11) -
to
_ json (99) -
to
_ s (11) -
try
_ static _ assert (22) - uid (11)
- unparse (11)
- wait2 (11)
- waitall (11)
- waitpid2 (11)
-
warn
_ unless _ e _ option (11) -
warning
_ unless _ e _ option (11) -
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - zero? (11)
検索結果
先頭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... -
Pathname
# stat -> File :: Stat (6324.0) -
File.stat(self.to_s) と同じです。
...File.stat(self.to_s) と同じです。
@see File.stat...