種類
ライブラリ
- English (24)
- ビルトイン (3019)
- coverage (7)
- csv (192)
- digest (12)
- erb (36)
- fiddle (36)
- fileutils (439)
-
irb
/ cmd / load (36) - json (36)
- logger (24)
- mkmf (24)
-
net
/ http (96) - nkf (12)
- objspace (12)
- open-uri (2)
- open3 (12)
- openssl (12)
- optparse (12)
- pathname (216)
- psych (82)
- rake (360)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) -
rdoc
/ parser / ruby (12) - ripper (36)
-
ripper
/ filter (24) -
ripper
/ lexer (24) -
ripper
/ sexp (24) -
rubygems
/ commands / which _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ installer (12) -
rubygems
/ source _ index (12) -
test
/ unit (1) - thread (2)
- timeout (21)
- un (48)
-
webrick
/ httprequest (12) -
webrick
/ ssl (12) - win32ole (12)
- zlib (36)
クラス
-
ARGF
. class (96) - BasicObject (24)
- Binding (19)
- CSV (180)
- Class (12)
- Coverage (7)
- Dir (256)
- ERB (36)
-
Fiddle
:: Function (12) -
Fiddle
:: Pointer (24) - File (588)
-
File
:: Stat (516) -
Gem
:: ConfigFile (24) -
Gem
:: Installer (12) -
Gem
:: SourceIndex (12) - IO (634)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Logger (24)
- Method (26)
-
Net
:: HTTP (48) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - Object (24)
- OptionParser (12)
- Pathname (216)
- Proc (14)
-
RDoc
:: Parser :: Ruby (12) -
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (216) -
Rake
:: FileTask (24) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) - Ripper (84)
-
Ripper
:: Filter (24) -
RubyVM
:: InstructionSequence (108) - String (12)
-
WEBrick
:: HTTPRequest (12) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (12)
- FileTest (174)
- FileUtils (451)
-
GC
:: Profiler (48) - JSON (36)
- Kernel (450)
- Marshal (24)
- ObjectSpace (12)
-
OpenSSL
:: ASN1 (12) - Psych (82)
-
Rake
:: Cloneable (24) -
Rake
:: TaskManager (12) - RakeFileUtils (48)
-
RubyVM
:: AbstractSyntaxTree (10) -
Test
:: Unit (1) - Timeout (21)
-
WEBrick
:: Config (12)
キーワード
-
$ > (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ NR (12) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (26)
- <=> (12)
- == (12)
- >> (14)
- ARGF (12)
- Base (12)
- CSV (12)
- ConditionVariable (12)
- Constants (12)
- DATA (12)
- DOSISH 対応 (12)
- EXXX (12)
- GzipWriter (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (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
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NKF (12)
-
OPERATING
_ SYSTEM _ DEFAULTS (12) - Open3 (12)
-
PLATFORM
_ DEFAULTS (12) - Ruby用語集 (12)
- SSL (12)
- Stat (12)
- Time (12)
- WhichCommand (12)
- Win32ネイティブ版Rubyの互換性問題 (12)
- [] (36)
-
absolute
_ path (24) -
absolute
_ path? (6) -
add
_ row (12) - advise (12)
-
allocation
_ sourcefile (12) - ascend (24)
- atime (48)
-
base
_ label (12) - basename (24)
- bigdecimal (12)
- birthtime (23)
- blksize (12)
- blockdev? (12)
- blocks (12)
-
body
_ stream (12) -
body
_ stream= (12) - call (12)
- caller (36)
- cd (24)
-
cgi
/ session (12) - chardev? (12)
- chdir (24)
- chmod (36)
-
chmod
_ R (12) - chown (48)
-
chown
_ R (12) - chroot (12)
- chunk (12)
- cleanpath (12)
-
clear
_ exclude (12) - clone (24)
- close (24)
- closed? (12)
- cmp (12)
-
collect
_ method (12) - commands (12)
-
compare
_ file (12) - compile (24)
-
compile
_ file (12) -
compile
_ option= (12) - copy (12)
- count (12)
- cp (12)
-
cp
_ lr (7) -
cp
_ r (12) -
create
_ makefile (12) - ctime (48)
- debug (12)
- decode (12)
-
def
_ class (12) - delete (12)
- descend (24)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dirname (24)
-
drb
/ extservm (12) -
drb
/ ssl (12) - dump (36)
- dup (24)
- each (72)
-
each
_ byte (24) -
each
_ child (32) -
each
_ codepoint (24) -
each
_ filename (12) -
each
_ line (72) - egrep (12)
- empty? (9)
- entries (12)
- eval (12)
-
excluded
_ from _ list? (12) - executable? (12)
-
executable
_ real? (24) - execute (36)
- exist? (12)
- existing (12)
- existing! (12)
- exists? (27)
- ext (12)
-
external
_ encoding (12) - extname (12)
- fail (36)
- fcntl (12)
- fdatasync (12)
- fiddle (12)
- file? (12)
- filename (48)
- filename= (12)
- fileno (23)
- filter (36)
- find (12)
- finish (12)
- flock (12)
- flush (12)
- fnmatch (24)
- fnmatch? (12)
-
for
_ fd (12) - foreach (72)
-
formatted
_ program _ filename (12) - formatter (12)
- ftype (24)
- get (24)
- getbyte (12)
- getc (12)
- gets (12)
- gid (12)
- glob (24)
- grpowned? (24)
- gsub! (12)
- helpfile (12)
- home (24)
- identical? (24)
- import (12)
- ino (12)
-
inplace
_ mode= (12) - install (12)
-
install
_ rb (12) -
instance
_ eval (24) -
internal
_ encoding (12) - irb (12)
-
is
_ a? (12) - isatty (12)
- join (12)
-
kind
_ of? (12) - label (12)
- lchmod (12)
- lchown (12)
- lex (12)
-
line
_ stub (7) - link (24)
- ln (12)
-
ln
_ s (12) - load (63)
-
load
_ file (24) -
load
_ file! (12) -
load
_ specification (12) -
load
_ stream (24) - logger (12)
- lstat (24)
- makedirs (12)
- mkdir (24)
-
mkdir
_ p (12) - mkfifo (10)
- mkpath (12)
- mode (12)
- move (12)
- mtime (36)
- mv (12)
- needed? (12)
- new (132)
- nlink (12)
-
nowrite
_ flag (12) -
nowrite
_ flag= (12) - of (12)
- open (146)
- optparse (12)
- owned? (24)
-
package
_ files (12) -
package
_ files= (12) - parameters (12)
- parse (24)
-
parse
_ file (10) - path (48)
- pathmap (12)
- pipe? (12)
- pos (12)
- pos= (12)
- post (24)
- pread (8)
- profile (6)
- puts (12)
- pwrite (8)
- query (12)
- raise (36)
- rake (12)
- rakefile (12)
-
raw
_ data (12) -
rb
_ compile _ error (12) -
rb
_ compile _ error _ with _ enc (12) -
rb
_ compile _ file (12) - rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - rdoc (12)
-
rdoc
/ parser / c (12) - read (24)
-
read
_ body (24) - readable? (24)
-
readable
_ real? (12) - readbyte (24)
- readchar (12)
- readline (12)
- readlines (84)
- readlink (12)
- realpath (36)
- remove (12)
-
remove
_ entry (12) - rename (12)
- reopen (36)
- report (12)
- require (12)
-
require
_ relative (12) - resolve (12)
-
respond
_ to? (12) - result (12)
- rm (24)
-
rm
_ r (12) - rmdir (12)
- rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ command _ manager (12) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / cert _ command (12) -
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / cleanup _ command (12) -
rubygems
/ commands / contents _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / environment _ command (12) -
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / help _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / rdoc _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (12) -
safe
_ load (19) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - setgid? (24)
- setuid? (24)
-
setup
_ argv (1) - sexp (12)
-
sexp
_ raw (12) - size (24)
- size? (24)
- socket? (24)
-
source
_ location (7) - spawn (48)
- split (24)
- stat (24)
- sticky? (24)
- sub! (12)
- superclass (12)
- symlink (24)
- symlink? (24)
- sync (12)
-
synthesize
_ file _ task (12) - system (28)
- syswrite (12)
- tell (12)
- test (24)
-
test
/ unit (1) - timeout (21)
-
to
_ a (12) -
to
_ ary (12) -
to
_ i (12) -
to
_ path (12) -
to
_ ptr (12) -
to
_ s (24) - tokenize (12)
-
total
_ time (12) - touch (24)
- tracer (12)
- truncate (24)
- tsort (12)
- tty? (12)
- uid (12)
- umask (24)
- un (12)
- unlink (12)
- uptodate? (12)
- utime (12)
-
verbose
_ flag (12) -
verbose
_ flag= (12) -
wait
_ writable (12) -
world
_ readable? (24) -
world
_ writable? (24) - writable? (24)
-
writable
_ real? (12) - write (12)
- zero? (24)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- 制御構造 (12)
- 変数と定数 (12)
- 字句構造 (12)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (21129.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
ARGF
. class # file -> IO (18147.0) -
現在開いている処理対象の File オブジェクト(または IO オブジェ クト)を返します。
...開いている処理対象の File オブジェクト(または IO オブジェ
クト)を返します。
$ echo "foo" > foo
$ echo "bar" > bar
$ ruby argf.rb foo bar
ARGF.file # => #<File:foo>
ARGF.read(5) # => "foo\nb"
ARGF.file # => #<File:bar>
ARGFが現在開いて... -
rubygems
/ config _ file (12000.0) -
設定ファイルに書かれている gem コマンドのオプションを オブジェクトに保存するためのライブラリです。
設定ファイルに書かれている gem コマンドのオプションを
オブジェクトに保存するためのライブラリです。 -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (9352.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
... file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::Inst... -
File
. lstat(filename) -> File :: Stat (9285.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
. fnmatch(pattern , path , flags = 0) -> bool (9252.0) -
ファイル名のパターンマッチ fnmatch(3) を行います。 path が pattern にマッチすれば真を返します。そうでない場合には false を返します。
...定します。ワイルドカードとして `*',
`**`, `?', `[]', `{}' が使用できます。
//emlist[例][ruby]{
%w(foo foobar bar).each {|f|
p File.fnmatch("foo*", f)
}
# => true
# true
# false
//}
@param path パスを表す文字列を指定します。
@param flags......る定数は以下のとおりです。
これらの定数は File::Constants で定義されていますが、
File クラスの親クラスの IO が File::Constants をインクルードしているので、
これらの定数は File::FNM_NOESCAPE などとして参照可能です。
: FNM_NOES......れます。
//emlist[][ruby]{
p File.fnmatch('\a', 'a') # => true
p File.fnmatch('\a', '\a', File::FNM_NOESCAPE) # => true
//}
前者で * は、エスケープされているので "*" そのものにマッチ
します。
//emlist[][ruby]{
p File.fnmatch('\*', 'a')... -
File
. fnmatch?(pattern , path , flags = 0) -> bool (9252.0) -
ファイル名のパターンマッチ fnmatch(3) を行います。 path が pattern にマッチすれば真を返します。そうでない場合には false を返します。
...定します。ワイルドカードとして `*',
`**`, `?', `[]', `{}' が使用できます。
//emlist[例][ruby]{
%w(foo foobar bar).each {|f|
p File.fnmatch("foo*", f)
}
# => true
# true
# false
//}
@param path パスを表す文字列を指定します。
@param flags......る定数は以下のとおりです。
これらの定数は File::Constants で定義されていますが、
File クラスの親クラスの IO が File::Constants をインクルードしているので、
これらの定数は File::FNM_NOESCAPE などとして参照可能です。
: FNM_NOES......れます。
//emlist[][ruby]{
p File.fnmatch('\a', 'a') # => true
p File.fnmatch('\a', '\a', File::FNM_NOESCAPE) # => true
//}
前者で * は、エスケープされているので "*" そのものにマッチ
します。
//emlist[][ruby]{
p File.fnmatch('\*', 'a')... -
File
. stat(filename) -> File :: Stat (9247.0) -
filename の情報を含む File::Stat オブジェクトを生成し て返します。
...
filename の情報を含む File::Stat オブジェクトを生成し
て返します。
@param filename ファイル名を表す文字列を指定します。
@raise Errno::EXXX 情報の取得に失敗した場合に発生します。
//emlist[例][ruby]{
File.stat("testfile").class # => Fi......le::Stat
File.stat("testfile").mtime # => 2017-12-10 01:13:56 +0900
//}
@see IO#stat, File#lstat... -
File
. basename(filename , suffix = "") -> String (9244.0) -
filename の一番後ろのスラッシュに続く要素を返します。もし、 引数 suffix が与えられて、かつそれが filename の末尾に 一致するなら、それを取り除いたものを返します。
...
filename の一番後ろのスラッシュに続く要素を返します。もし、
引数 suffix が与えられて、かつそれが filename の末尾に
一致するなら、それを取り除いたものを返します。
//emlist[例][ruby]{
p File.basename("ruby/ruby.c") #=> "ruby......"
p File.basename("ruby/ruby.c", ".c") #=> "ruby"
p File.basename("ruby/ruby.c", ".*") #=> "ruby"
p File.basename("ruby/ruby.exe", ".*") #=> "ruby"
p File.basename("ruby/y.tab.c", ".*") #=> "y.tab"
//}
File.basename の動作は basename(3)
に従います。
//emlist[例][ruby]{
p File.b......asename("foo/bar/") # => "bar"
//}
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任...