種類
ライブラリ
- ビルトイン (2486)
- base64 (12)
- benchmark (24)
- bigdecimal (24)
-
bigdecimal
/ math (72) - csv (58)
- date (4)
- erb (108)
- forwardable (12)
-
irb
/ output-method (12) -
irb
/ xmp (36) - json (120)
- matrix (48)
- mkmf (48)
-
net
/ http (180) -
net
/ pop (132) -
net
/ smtp (24) -
net
/ telnet (12) - nkf (12)
- objspace (24)
- open-uri (40)
- open3 (72)
- openssl (60)
- optparse (72)
- pp (12)
- psych (36)
- rake (48)
-
rdoc
/ markup (48) -
rubygems
/ requirement (12) - set (14)
- shell (42)
-
shell
/ command-processor (12) -
shell
/ filter (36) - shellwords (24)
- socket (60)
- stringio (12)
- strscan (60)
- syslog (60)
- tempfile (36)
- thread (18)
- time (60)
- timeout (21)
- tmpdir (24)
- tracer (48)
- uri (14)
- win32ole (792)
- zlib (540)
クラス
-
ARGF
. class (108) - Addrinfo (24)
- Array (88)
- BasicObject (60)
- CSV (36)
-
CSV
:: Row (18) - Class (12)
- Data (6)
- Date (2)
- DateTime (2)
- Dir (36)
- ERB (36)
-
Encoding
:: Converter (24) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) - Enumerator (36)
-
Enumerator
:: Lazy (12) - File (12)
-
File
:: Stat (60) -
Gem
:: Requirement (12) - Hash (12)
- IO (348)
-
IRB
:: OutputMethod (12) - Integer (24)
-
JSON
:: State (72) - MatchData (12)
- Matrix (48)
- Method (24)
- Module (99)
-
Net
:: HTTP (108) -
Net
:: POP3 (24) -
Net
:: POPMail (108) -
Net
:: SMTP (24) -
Net
:: Telnet (10) - Object (150)
- OptionParser (72)
- PP (12)
- Proc (7)
-
RDoc
:: Markup (36) -
Rake
:: Application (12) - Range (19)
- Regexp (84)
-
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (120) - Set (20)
- Shell (42)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (36) - SignalException (12)
- Socket (24)
- String (120)
- StringIO (12)
- StringScanner (60)
- Struct (24)
- Tempfile (36)
- Thread (40)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: ConditionVariable (24) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - ThreadGroup (12)
- Time (62)
- TracePoint (26)
- Tracer (48)
- UNIXSocket (12)
- UnboundMethod (12)
- WIN32OLE (60)
-
WIN32OLE
_ EVENT (48) -
WIN32OLE
_ METHOD (192) -
WIN32OLE
_ PARAM (108) -
WIN32OLE
_ TYPE (108) -
WIN32OLE
_ TYPELIB (108) -
WIN32OLE
_ VARIABLE (96) - XMP (24)
-
Zlib
:: Deflate (12) -
Zlib
:: GzipReader (288) -
Zlib
:: GzipWriter (228)
モジュール
- Base64 (12)
- Benchmark (24)
- BigMath (96)
-
ERB
:: DefMethod (12) -
ERB
:: Util (48) - Enumerable (72)
- FileTest (24)
- FileUtils (12)
-
GC
:: Profiler (12) - JSON (36)
-
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (492)
-
Net
:: HTTPHeader (72) - ObjectSpace (108)
- Open3 (72)
-
OpenSSL
:: Buffering (12) - OpenURI (24)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10) - Shellwords (24)
- Signal (36)
- Syslog (48)
- Timeout (21)
- URI (14)
オブジェクト
- ENV (24)
キーワード
- ! (12)
- != (12)
-
$ -I (12) -
$ : (12) -
$ > (12) -
$ LOAD _ PATH (12) -
$ stderr (12) -
$ stdout (12) - << (31)
- === (31)
- =~ (12)
- Digest (12)
- E (12)
- ERB (12)
- Emitter (12)
- GzipReader (12)
- IO (12)
- Location (12)
- Markup (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NKF (12)
- NoMethodError (12)
- OCSP (12)
- PI (12)
- Parser (12)
- Queue (12)
- ReFe (12)
- Request (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Rubyの起動 (12)
- SSLServer (12)
- SingleForwardable (12)
- Status (12)
- Syslog (12)
- Telnet (2)
- ThreadGroup (12)
- UndefinedConversionError (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ PARAM (12) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIABLE (12) - YAMLTree (12)
- [] (12)
-
_ getproperty (12) -
_ setproperty (12) - ` (12)
- abort (24)
-
absolute
_ path (24) - add (12)
-
add
_ html (12) -
add
_ row (12) -
add
_ special (12) -
add
_ word _ pair (12) -
alias
_ command (6) -
alias
_ method (12) - all (36)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) -
at
_ exit (12) - atan (12)
-
base
_ label (24) - bigdecimal (12)
-
bigdecimal
/ math (12) -
bind
_ call (12) - binwrite (12)
-
block
_ given? (12) - blockdev? (24)
- broadcast (12)
- chardev? (24)
- close (12)
- comment= (12)
-
compile
_ file (12) - concat (12)
-
connect
_ from (24) -
const
_ added (3) -
const
_ load (12) - convert (12)
- cos (12)
-
create
_ id= (12) - cycle (48)
- decode (7)
- decode64 (12)
- deconstruct (6)
-
deconstruct
_ keys (12) -
def
_ erb _ method (12) -
def
_ system _ command (6) - default (12)
-
default
_ event _ sources (12) -
define
_ finalizer (24) - deflate (12)
- delete (24)
-
delete
_ all (24) - deq (24)
- disasm (24)
- disassemble (24)
- dispid (12)
- drb (12)
-
drb
/ extservm (12) -
drb
/ gw (12) - dump (12)
- each (174)
-
each
_ byte (24) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ line (72) -
each
_ name (12) -
each
_ object (48) -
each
_ value (12) -
each
_ with _ index (24) - empty? (12)
-
enum
_ for (24) - eof (24)
- eof? (24)
-
error
_ bytes (12) -
error
_ char (12) -
eval
_ script (7) - event? (12)
-
event
_ interface (12) - exec (48)
- exit (12)
- exit! (12)
- exp (12)
- fetch (36)
- file (12)
- finish (12)
- flock (12)
- flush (12)
- foreach (42)
- fork (24)
- get2 (24)
- getc (12)
- gets (12)
- gsub (48)
- guid (24)
- h (12)
- handler= (12)
- help (12)
- helpcontext (24)
- helpfile (24)
- helpstring (12)
-
html
_ escape (12) - httpdate (12)
-
ignore
_ deadlock= (4) -
in
_ namespace (12) - inherited (12)
- initialize (12)
-
initialize
_ copy (12) - input? (12)
-
insert
_ output (12) - inspect (67)
-
install
_ system _ commands (6) -
instruction
_ sequence (7) - invkind (12)
-
invoke
_ kind (12) -
irb
/ xmp (12) - iso8601 (12)
- iterator? (12)
- label (12)
-
last
_ match (24) - lineno (12)
- lineno= (12)
- log (12)
- loop (20)
- mail (36)
-
major
_ version (12) - match (24)
-
max
_ by (48) - measure (12)
-
method
_ added (12) -
method
_ removed (12) -
method
_ undefined (12) -
minor
_ version (12) - mkdir (18)
- mktmpdir (24)
- mtime= (12)
- name (48)
-
net
/ http (12) -
net
/ imap (12) -
net
/ pop (12) - new (124)
- next (12)
-
object
_ nl (12) -
object
_ nl= (12) - of (22)
-
off
_ event (12) -
offset
_ vtbl (12) -
ole
_ get _ methods (12) -
ole
_ type (24) -
ole
_ type _ detail (12) -
ole
_ typelib (24) -
on
_ event (12) -
on
_ head (12) -
on
_ tail (12) - open (112)
- open! (12)
-
open
_ uri (24) - optional? (12)
- optparse (12)
-
orig
_ name= (12) - output? (12)
- owner (12)
- p (12)
- path (24)
- peek (12)
- peep (12)
- pid (12)
- pipe (96)
-
pipeline
_ rw (24) -
pipeline
_ w (24) - pointer= (12)
- pop (60)
- popen (168)
- popen3 (24)
- pos (24)
- pos= (12)
- post2 (24)
- pp (12)
- prepend (12)
- prepended (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) - prettyprint (12)
- print (26)
- printf (12)
- progids (12)
-
public
_ send (24) - putc (12)
- rake (12)
-
rb
_ protect (12) -
rdoc
/ markup / to _ ansi (12) -
rdoc
/ markup / to _ bs (12) -
rdoc
/ markup / to _ html (12) - read (24)
- readchar (12)
- readline (12)
- readlines (12)
- ready (12)
- realtime (12)
- refine (12)
- reopen (12)
-
request
_ get (24) -
request
_ post (24) -
respond
_ to? (12) - result (24)
-
return
_ type (12) -
return
_ vtype (12) - retval? (12)
- rewind (12)
- rfc2822 (12)
- rfc822 (12)
-
rinda
/ rinda (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) - run (12)
-
send
_ io (12) -
send
_ request (12) - separator (12)
-
set
_ get _ line _ procs (24) - setgid? (12)
- setuid? (12)
- sh (12)
- shell (6)
- shellescape (12)
- shelljoin (12)
- shift (24)
- signal (12)
- signame (12)
- signm (12)
- sin (12)
-
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
size
_ opt _ params (12) -
size
_ params (12) - sleep (24)
-
source
_ location (12) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - sqrt (12)
- src (12)
- stdout= (12)
- sticky? (12)
- sub (36)
- taint (6)
- tap (12)
- tcp (24)
- tell (24)
- test (24)
- throw (12)
- timeout (21)
- times (24)
-
to
_ a (6) -
to
_ csv (4) -
to
_ enum (24) -
to
_ json (12) -
to
_ s (98) -
top
_ level (12) -
trace
_ var (36) - tracer (12)
- trap (24)
-
try
_ cpp (24) -
try
_ link (24) - u (12)
-
unalias
_ command (6) -
undef
_ method (12) -
undef
_ system _ command (6) -
undefine
_ finalizer (12) - unescape (7)
- unscan (12)
- upto (12)
-
url
_ encode (12) - value (12)
-
variable
_ kind (12) - variables (12)
- varkind (12)
- ver (12)
- verbose= (12)
- version (12)
- visible? (36)
- wakeup (12)
- warn (12)
-
with
_ index (12) -
with
_ object (24) - wrap (48)
- write (14)
- xmlschema (12)
- xmp (12)
- yaml (12)
- | (6)
- ~ (12)
- クラス/メソッドの定義 (12)
- パターンマッチ (12)
- 制御構造 (12)
- 変数と定数 (12)
検索結果
先頭3件
-
Kernel
. # exec(program , *args , options={}) -> () (2.0) -
引数で指定されたコマンドを実行します。
引数で指定されたコマンドを実行します。
プロセスの実行コードはそのコマンド(あるいは shell)になるので、
起動に成功した場合、このメソッドからは戻りません。
この形式では、常に shell を経由せずに実行されます。
exec(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも
そのまま program ... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (1.0) -
単体のファイルでファイルテストを行います。
単体のファイルでファイルテストを行います。
@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 下表に特に明記していないものは、真偽値を返します。
以下は cmd として指定できる文字リテラルとその意味です。
: ?r
ファイルを実効 uid で読むことができる
: ?w
ファイルに実効 uid で書くことができる
: ?x
ファイルを... -
Regexp
. last _ match -> MatchData (1.0) -
カレントスコープで最後に行った正規表現マッチの MatchData オ ブジェクトを返します。このメソッドの呼び出しは $~ の参照と同じです。
カレントスコープで最後に行った正規表現マッチの MatchData オ
ブジェクトを返します。このメソッドの呼び出しは $~
の参照と同じです。
//emlist[例][ruby]{
/(.)(.)/ =~ "ab"
p Regexp.last_match # => #<MatchData:0x4599e58>
p Regexp.last_match[0] # => "ab"
p Regexp.last_match[1] # => "a"
p Regexp.last_match[2] # => "b"
p Regexp.last_match[3] # => nil...