ライブラリ
- ビルトイン (1738)
- abbrev (12)
- bigdecimal (12)
-
cgi
/ core (48) -
cgi
/ session (36) -
cgi
/ session / pstore (12) - csv (87)
- date (4)
- dbm (48)
- delegate (24)
-
digest
/ sha2 (24) - drb (12)
- erb (8)
- etc (24)
- forwardable (48)
- gdbm (48)
-
io
/ console (36) - ipaddr (12)
-
irb
/ cmd / pushws (12) - json (144)
- logger (25)
- matrix (24)
-
minitest
/ unit (1) -
net
/ http (36) -
net
/ pop (12) -
net
/ smtp (12) - open-uri (12)
- openssl (156)
- optparse (132)
- ostruct (31)
- pathname (12)
- prettyprint (12)
- psych (60)
- rake (72)
-
rdoc
/ code _ object (12) -
rdoc
/ generator / darkfish (24) -
rdoc
/ text (24) - resolv (12)
-
rexml
/ document (24) -
rexml
/ parsers / pullparser (12) -
rinda
/ rinda (36) -
rinda
/ tuplespace (48) - rss (360)
- rubygems (24)
-
rubygems
/ command (84) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (48) -
rubygems
/ dependency _ list (12) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ writer (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ server (12) -
rubygems
/ source _ index (36) -
rubygems
/ source _ info _ cache (84) -
rubygems
/ source _ info _ cache _ entry (12) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ version (24) - sdbm (48)
- set (9)
- shell (576)
-
shell
/ builtin-command (60) -
shell
/ command-processor (408) -
shell
/ filter (468) -
shell
/ process-controller (90) -
shell
/ system-command (90) - shellwords (36)
- socket (12)
- stringio (12)
- sync (72)
- thread (8)
- thwait (6)
-
webrick
/ cgi (12) -
webrick
/ httpauth / htdigest (24) -
webrick
/ httpauth / htgroup (12) -
webrick
/ httpauth / htpasswd (24) -
webrick
/ httprequest (48) -
webrick
/ httpresponse (24) -
webrick
/ server (24) -
win32
/ registry (12) -
yaml
/ dbm (24) - zlib (144)
クラス
- Array (151)
- BasicSocket (12)
- BigDecimal (12)
- Bignum (3)
-
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) - CSV (24)
-
CSV
:: Row (27) -
CSV
:: Table (36) - Complex (12)
- DBM (48)
-
DRb
:: DRbServer (12) - Data (12)
- Date (2)
- DateTime (2)
- Delegator (24)
-
Digest
:: SHA2 (24) - ERB (8)
-
Encoding
:: Converter (12) -
Enumerator
:: ArithmeticSequence (7) -
Etc
:: Passwd (24) - File (12)
- Float (12)
- GDBM (48)
-
Gem
:: Command (84) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (48) -
Gem
:: DependencyList (12) -
Gem
:: Installer (12) -
Gem
:: Package :: TarWriter (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Server (12) -
Gem
:: SourceIndex (36) -
Gem
:: SourceInfoCache (84) -
Gem
:: SourceInfoCacheEntry (12) -
Gem
:: SpecFetcher (24) -
Gem
:: Version (24) - Hash (1116)
- IO (84)
- IPAddr (12)
-
IRB
:: ExtendCommand :: PushWorkspace (12) -
JSON
:: State (24) - Logger (24)
-
Logger
:: Application (1) - MatchData (26)
- Matrix (12)
- Method (12)
-
MiniTest
:: Unit (1) -
Net
:: HTTP (12) -
Net
:: POP3 (12) -
Net
:: SMTP (12) - Object (48)
-
OpenSSL
:: ASN1 :: ObjectId (24) -
OpenSSL
:: BN (24) -
OpenSSL
:: Config (12) -
OpenSSL
:: Engine (12) -
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: SSL :: SSLServer (12) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: ExtensionFactory (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (31)
- OptionParser (120)
- Pathname (12)
- PrettyPrint (12)
- Proc (12)
-
Psych
:: Stream (12) -
Psych
:: Visitors :: YAMLTree (48) -
RDoc
:: CodeObject (12) -
RDoc
:: Generator :: Darkfish (24) -
RDoc
:: Options (48) -
REXML
:: Parent (24) -
REXML
:: Parsers :: PullParser (12) -
RSS
:: Maker :: RSSBase (12) -
RSS
:: Maker :: XMLStyleSheets :: XMLStyleSheet (144) -
RSS
:: XMLStyleSheet (144) -
Rake
:: TaskArguments (36) - Random (24)
- Range (12)
- Rational (24)
- Regexp (12)
-
Resolv
:: DNS :: Resource :: SOA (12) -
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (36) -
Rinda
:: TupleSpaceProxy (36) - SDBM (48)
- Set (12)
- Shell (576)
-
Shell
:: AppendFile (6) -
Shell
:: AppendIO (6) -
Shell
:: BuiltInCommand (12) -
Shell
:: Cat (6) -
Shell
:: CommandProcessor (408) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (468) -
Shell
:: Glob (6) -
Shell
:: ProcessController (90) -
Shell
:: SystemCommand (90) -
Shell
:: Tee (6) -
Shell
:: Void (6) - String (84)
- StringIO (12)
- Struct (37)
-
Thread
:: Queue (24) -
Thread
:: SizedQueue (24) - ThreadsWait (6)
- Time (14)
- UnboundMethod (12)
- Vector (12)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (24) -
WEBrick
:: HTTPAuth :: Htdigest (24) -
WEBrick
:: HTTPAuth :: Htgroup (12) -
WEBrick
:: HTTPAuth :: Htpasswd (24) -
WEBrick
:: HTTPRequest (48) -
WEBrick
:: HTTPResponse (24) -
Win32
:: Registry (12) -
YAML
:: DBM (24) -
Zlib
:: Deflate (36) -
Zlib
:: GzipFile (12) -
Zlib
:: GzipWriter (24) -
Zlib
:: Inflate (12) -
Zlib
:: ZStream (60)
モジュール
-
CGI
:: QueryExtension (48) - DublinCoreModel (36)
- Enumerable (41)
- FileUtils (24)
- Forwardable (24)
-
Gem
:: LocalRemoteOptions (12) -
Gem
:: QuickLoader (24) -
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 (24) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (12)
-
Net
:: HTTPHeader (24) -
OpenSSL
:: Buffering (12) -
OpenURI
:: Meta (12) -
OptionParser
:: Arguable (12) -
RDoc
:: Text (24) -
RSS
:: XMLStyleSheetMixin (24) - SingleForwardable (24)
-
Sync
_ m (72)
キーワード
- + (6)
- < (16)
- <= (10)
- == (12)
- === (12)
- > (16)
- >= (10)
- >> (6)
- Marshal (12)
- [] (30)
- []= (24)
- abbrev (12)
- active? (12)
-
active
_ job? (6) -
active
_ jobs (6) -
active
_ jobs _ exist? (6) -
add
_ bulk _ threshold _ option (12) -
add
_ schedule (6) -
add
_ specs (12) - alternate (24)
- alternate= (24)
- append (18)
- assoc (12)
- atime (18)
- attributes (12)
- basename (18)
- begins? (12)
-
block
_ length (12) - blockdev? (18)
-
bulk
_ threshold (12) -
bulk
_ threshold= (12) -
cache
_ data (12) - cat (18)
- cd (6)
- chardev? (18)
- charset (24)
- charset= (24)
- chdir (6)
-
check
_ point (18) - chmod (18)
- chown (18)
- classify (12)
- clear (12)
- clone (12)
-
close
_ read (12) -
close
_ write (12) - closed? (12)
- command (6)
-
command
_ processor (6) - compact (9)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - concat (18)
- config (48)
-
create
_ ext _ from _ hash (12) - ctime (18)
- cwd (6)
-
dc
_ publisher (12) -
dc
_ publisher= (12) -
dc
_ publishers (12) - debug (6)
- debug= (6)
- debug? (6)
-
deconstruct
_ keys (20) - default (24)
- default= (12)
-
default
_ proc (12) -
default
_ proc= (12) - defaults (12)
- defaults= (12)
- deflate (12)
- delegate (24)
- delete (42)
-
delete
_ if (24) - dig (10)
-
digest
_ length (12) - dir (6)
-
dir
_ stack (6) - directory? (18)
- dirname (18)
- dirs (6)
- dup (12)
- each (132)
-
each
_ key (24) -
each
_ pair (24) -
each
_ value (24) - echo (18)
- empty? (12)
- eql? (12)
- equal? (12)
- except (4)
- executable? (18)
-
executable
_ real? (18) - execute (12)
- exist? (18)
- exists? (18)
- fetch (48)
-
fetch
_ path (12) -
fetch
_ values (20) - file? (18)
- files (12)
- filter (14)
- filter! (14)
-
find
_ gems (12) -
find
_ system _ command (18) - finish (144)
-
finish
_ all _ jobs (18) -
finish
_ page _ dir (12) - finished (12)
- finished? (30)
- flatten (12)
- flock (12)
- flush (162)
-
flush
_ left (12) -
flush
_ next _ in (12) -
flush
_ next _ out (12) -
flush
_ sessions (12) - foreach (18)
- ftype (18)
- generate (12)
- getopts (36)
- getwd (6)
- glob (18)
-
group
_ by (12) - grpowned? (18)
- gsub (12)
- gsub! (12)
-
has
_ key? (12) -
has
_ value? (12) - hash (265)
-
hash
_ old (12) - header (24)
- href (24)
- href= (24)
- identical? (18)
- iflush (12)
- include? (12)
- index (7)
- initialize (12)
- input (6)
- input= (24)
- inspect (18)
-
instance
_ delegate (12) - invert (48)
- ioflush (12)
- jobs (12)
-
jobs
_ exist? (6) - join (18)
-
keep
_ if (24) - key (12)
- key? (12)
- keys (12)
- kill (12)
-
kill
_ job (6) -
latest
_ cache _ data (12) -
latest
_ specs (12) - length (12)
- link (18)
- lock (6)
- lshift! (12)
- lstat (18)
-
marshal
_ dump (72) -
marshal
_ load (48) - media (24)
- media= (24)
- member? (12)
- merge (24)
- merge! (24)
- mkdir (18)
- modifiable (12)
- mtime (18)
- name (6)
-
named
_ captures (12) - notify (30)
- oflush (12)
- on (96)
- open (18)
- out (18)
- owned? (18)
- params (12)
- params= (12)
- pipe? (18)
- popd (6)
- popdir (6)
-
process
_ args (1) -
process
_ controller (6) - push (84)
-
push
_ all _ highest _ version _ gems _ on _ load _ path (12) -
push
_ gem _ version _ on _ load _ path (12) - pushd (6)
- pushdir (6)
- pwd (6)
- query (12)
- rassoc (12)
- read (24)
-
read
_ all (24) -
read
_ cache _ data (12) - readable? (18)
-
readable
_ real? (18) - readlink (18)
-
record
_ separator (6) -
record
_ separator= (6) - refresh (36)
- refresh! (12)
- rehash (30)
- reject (60)
- reject! (24)
- rename (18)
- replace (12)
-
reset
_ cache _ for (12) - restore (48)
-
result
_ with _ hash (8) - rm (18)
- rmdir (18)
- rshift! (12)
- ruby (12)
- rule (12)
- select (24)
- select! (24)
-
set
_ cache _ data (12) -
set
_ log (1) -
set
_ params (12) - setgid? (18)
- setuid? (18)
-
sev
_ threshold (12) -
sev
_ threshold= (12) - sfork (6)
- shared? (6)
- shebang (12)
- shell (18)
- shell= (12)
- shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shift (120)
-
short
_ name (12) -
show
_ all (12) -
show
_ all= (12) -
show
_ hash (12) -
show
_ help (12) -
show
_ lookup _ failure (12) - shuffle (24)
- shuffle! (24)
- shutdown (36)
-
single
_ delegate (12) - size (30)
- size? (18)
- slice (8)
- sn (12)
- socket? (18)
-
spec
_ predecessors (12) - specs (12)
- split (18)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
start
_ job (6) - stat (18)
- sticky? (18)
- store (12)
-
stream
_ end? (12) -
strip
_ hashes (12) - sub (12)
- sub! (12)
-
super
_ each (6) - symlink (18)
- symlink? (18)
-
sync
_ lock (6) -
sync
_ sh _ locker (6) -
sync
_ sh _ locker= (6) -
sync
_ shared? (6) -
sync
_ synchronize (6) -
sync
_ try _ lock (6) -
sync
_ unlock (6) - synchronize (6)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - take (24)
- tally (10)
- tee (18)
- terminate (6)
-
terminate
_ job (6) - test (18)
- title (24)
- title= (24)
-
to
_ a (18) -
to
_ csv (12) -
to
_ h (113) -
to
_ hash (108) -
to
_ json (108) -
to
_ json _ raw _ object (12) -
to
_ proc (10) -
to
_ s (30) - transact (18)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - truncate (18)
-
try
_ lock (6) - type (24)
- type= (24)
-
type
_ params (12) - umask (6)
- umask= (6)
- unlink (18)
- unlock (6)
- unshift (36)
- update (24)
- utime (18)
- value (12)
- value? (12)
- values (12)
-
values
_ at (12) - verbose (6)
- verbose= (6)
- verbose? (6)
- wait? (12)
-
wait
_ all _ jobs _ execution (6) -
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) -
with
_ defaults (12) -
world
_ readable? (18) -
world
_ writable? (18) - writable? (18)
-
writable
_ real? (18) -
xml
_ stylesheets (24) -
xml
_ stylesheets= (12) - zero? (18)
- | (6)
検索結果
先頭5件
-
FileUtils
# sh(*cmd) {|result , status| . . . } (18120.0) -
与えられたコマンドを実行します。
...。
@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exit... -
RDoc
:: Options # show _ hash -> bool (12201.0) -
コマンドライン引数の --show-hash オプションを指定していた場合、true を 返します。そうでない場合は false を返します。
...コマンドライン引数の --show-hash オプションを指定していた場合、true を
返します。そうでない場合は false を返します。... -
Shell
:: ProcessController # shell -> Shell (9201.0) -
@todo
@todo -
Shell
# pushd(path = nil , &block) -> object (9161.0) -
カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.
...みpushdする.
@param path カレントディレクトリをpathにする。文字列で指定します。
@param block イテレータとして呼ぶ場合, ブロックを指定します。
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=>......"/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"
sh.pushd("/usr/local"){
p sh.cwd #=> "/usr/local"
}
p sh.cwd #=> "/tmp"... -
Shell
# pushdir(path = nil , &block) -> object (9161.0) -
カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.
...みpushdする.
@param path カレントディレクトリをpathにする。文字列で指定します。
@param block イテレータとして呼ぶ場合, ブロックを指定します。
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=>......"/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"
sh.pushd("/usr/local"){
p sh.cwd #=> "/usr/local"
}
p sh.cwd #=> "/tmp"... -
Hash
# hash -> Integer (9101.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Hash
# rehash -> self (9101.0) -
キーのハッシュ値を再計算します。
...raise RuntimeError Hash#eachなどのイテレータの評価途中でrehashすると発生します。
@return selfを返します。
//emlist[例][ruby]{
a = [ "a", "b" ]
h = { a => 100 }
p h[a] #=> 100
a[0] = "z"
p h[a] #=> nil
h.rehash
p h[a] #=> 100
//}
@see Object#hash... -
Hash
# shift -> [object , object] | nil (9101.0) -
ハッシュからキーが追加された順で先頭の要素をひとつ取り除き、 [key, value]という配列として返します。
...ue]という配列として返します。
shiftは破壊的メソッドです。selfは要素を取り除かれた残りのハッシュに変更されます。
Ruby 3.2以前は、ハッシュが空の場合、デフォルト値(Hash#defaultまたはHash#default_procのブロックの値か、......, :cd => "all"}
p h.shift #=> [:ab, "some"]
p h.shift #=> [:cd, "all"]
p h #=> {}
p h.shift #=> nil
h1 = Hash.new("default value")
p h1 #=> {}
p h1.shift #=> "default value"
h2 = Hash.new {|*arg| arg}
p......h2 #=> {}
p h2.shift #=> [{}, nil]
//}
@see Array#shift......します。
shiftは破壊的メソッドです。selfは要素を取り除かれた残りのハッシュに変更されます。
ハッシュが空の場合、デフォルト値に関わらず nil を返します。
//emlist[例][ruby]{
h = {:ab => "some" , :cd => "all"}
p h.shift......> [:ab, "some"]
p h.shift #=> [:cd, "all"]
p h #=> {}
p h.shift #=> nil
h1 = Hash.new("default value")
p h1 #=> {}
p h1.shift #=> nil
h2 = Hash.new {|*arg| arg}
p h2 #=> {}
p h2.shift #=......> nil
//}
@see Array#shift... -
Hash
# to _ hash -> self (9101.0) -
self を返します。
...self を返します。
//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}
@see Object#to_hash, Hash#to_h... -
RSS
:: XMLStyleSheetMixin # xml _ stylesheets (9101.0) -
@todo
@todo