ライブラリ
- ビルトイン (2023)
- abbrev (22)
- bigdecimal (11)
-
cgi
/ core (66) -
cgi
/ session (33) -
cgi
/ session / pstore (11) -
cgi
/ util (22) - cmath (24)
- coverage (22)
- csv (286)
- date (110)
- dbm (44)
- delegate (22)
-
digest
/ sha1 (11) -
digest
/ sha2 (66) - drb (11)
- erb (7)
- etc (55)
- fiddle (33)
- fileutils (11)
- forwardable (44)
- gdbm (44)
-
io
/ console (33) - ipaddr (11)
- irb (11)
-
irb
/ cmd / pushws (11) - json (143)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / ostruct (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / symbol (11) -
json
/ add / time (11) - logger (23)
- matrix (22)
-
minitest
/ unit (1) - mkmf (11)
-
net
/ http (55) -
net
/ pop (22) -
net
/ smtp (11) - objspace (33)
- open-uri (11)
- openssl (352)
- optparse (143)
- ostruct (39)
- pathname (11)
- pp (11)
- prettyprint (11)
- pstore (22)
- psych (44)
- rake (55)
- rbconfig (22)
-
rbconfig
/ sizeof (22) -
rdoc
/ code _ object (11) -
rdoc
/ generator / darkfish (44) -
rdoc
/ markup / to _ html _ crossref (11) -
rdoc
/ text (22) - readline (22)
- resolv (22)
-
rexml
/ document (22) -
rexml
/ parsers / pullparser (11) -
rinda
/ rinda (33) -
rinda
/ tuplespace (44) - rubygems (44)
-
rubygems
/ command (77) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ config _ file (44) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ digest / sha1 (11) -
rubygems
/ digest / sha2 (11) -
rubygems
/ gem _ openssl (11) -
rubygems
/ installer (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ requirement (11) -
rubygems
/ security (33) -
rubygems
/ server (11) -
rubygems
/ source _ index (33) -
rubygems
/ source _ info _ cache (88) -
rubygems
/ source _ info _ cache _ entry (11) -
rubygems
/ spec _ fetcher (22) -
rubygems
/ specification (22) -
rubygems
/ version (22) - sdbm (44)
- set (11)
- shell (627)
-
shell
/ builtin-command (18) -
shell
/ command-processor (444) -
shell
/ filter (426) -
shell
/ process-controller (126) -
shell
/ system-command (72) - shellwords (110)
- socket (231)
- stringio (11)
- sync (72)
- thread (8)
- thwait (6)
- timeout (19)
- uri (66)
-
webrick
/ accesslog (11) -
webrick
/ cgi (11) -
webrick
/ config (33) -
webrick
/ httpauth / htdigest (22) -
webrick
/ httpauth / htgroup (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (44) -
webrick
/ httpresponse (22) -
webrick
/ https (11) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httputils (33) -
webrick
/ server (22) -
webrick
/ ssl (22) - win32ole (11)
-
yaml
/ dbm (22) - zlib (176)
クラス
- Array (138)
- BasicSocket (11)
- BigDecimal (22)
- Bignum (3)
- CGI (55)
-
CGI
:: Cookie (11) -
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: NullStore (11) -
CGI
:: Session :: PStore (11) - CSV (231)
-
CSV
:: Row (22) -
CSV
:: Table (33) - Complex (22)
- Coverage (22)
- DBM (44)
-
DRb
:: DRbServer (11) - Data (8)
- Date (110)
- DateTime (22)
- Delegator (22)
-
Digest
:: SHA2 (33) - ERB (7)
- Encoding (55)
-
Encoding
:: Converter (11) -
Enumerator
:: ArithmeticSequence (6) -
Etc
:: Passwd (11) - Exception (11)
- File (11)
- Float (11)
- GDBM (44)
-
Gem
:: Command (77) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: ConfigFile (44) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (11) -
Gem
:: Installer (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: Requirement (11) -
Gem
:: Server (11) -
Gem
:: SourceIndex (33) -
Gem
:: SourceInfoCache (88) -
Gem
:: SourceInfoCacheEntry (11) -
Gem
:: SpecFetcher (22) -
Gem
:: Specification (22) -
Gem
:: Version (22) - Hash (1045)
- IO (77)
- IPAddr (11)
-
IRB
:: ExtendCommand :: PushWorkspace (11) -
JSON
:: State (22) - Logger (22)
-
Logger
:: Application (1) - MatchData (22)
- Matrix (11)
- Method (11)
-
MiniTest
:: Unit (1) -
Net
:: HTTP (11) -
Net
:: HTTPResponse (22) -
Net
:: POP3 (22) -
Net
:: SMTP (11) - Object (55)
-
OpenSSL
:: ASN1 :: ObjectId (33) -
OpenSSL
:: BN (22) -
OpenSSL
:: Digest :: SHA (33) -
OpenSSL
:: Digest :: SHA1 (33) -
OpenSSL
:: Digest :: SHA224 (33) -
OpenSSL
:: Digest :: SHA256 (33) -
OpenSSL
:: Digest :: SHA384 (33) -
OpenSSL
:: Digest :: SHA512 (33) -
OpenSSL
:: Engine (11) -
OpenSSL
:: SSL :: SSLContext (22) -
OpenSSL
:: SSL :: SSLServer (11) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: ExtensionFactory (11) -
OpenSSL
:: X509 :: Name (11) - OpenStruct (50)
- OptionParser (132)
- PP (11)
- PStore (22)
- Pathname (11)
- PrettyPrint (11)
- Proc (11)
-
Psych
:: Stream (11) -
Psych
:: Visitors :: YAMLTree (33) -
RDoc
:: CodeObject (11) -
RDoc
:: Generator :: Darkfish (44) -
RDoc
:: Markup :: ToHtmlCrossref (11) -
RDoc
:: Options (22) -
REXML
:: Parent (22) -
REXML
:: Parsers :: PullParser (11) -
Rake
:: TaskArguments (33) - Random (22)
- Range (22)
- Rational (33)
- Regexp (22)
-
Resolv
:: DNS :: Resource :: SOA (22) -
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (33) -
Rinda
:: TupleSpaceProxy (33) -
RubyVM
:: InstructionSequence (11) - SDBM (44)
- Set (11)
- Shell (627)
-
Shell
:: BuiltInCommand (12) -
Shell
:: CommandProcessor (444) -
Shell
:: Filter (426) -
Shell
:: ProcessController (126) -
Shell
:: SystemCommand (72) -
Shell
:: Void (6) - Socket (110)
- String (77)
- StringIO (11)
- Struct (39)
- Symbol (11)
- Thread (11)
-
Thread
:: Queue (22) -
Thread
:: SizedQueue (22) - ThreadsWait (6)
- Time (22)
-
URI
:: FTP (11) -
URI
:: Generic (22) -
URI
:: HTTP (11) -
URI
:: LDAP (11) -
URI
:: MailTo (11) - UnboundMethod (11)
- Vector (11)
-
WEBrick
:: CGI (11) -
WEBrick
:: GenericServer (22) -
WEBrick
:: HTTPAuth :: Htdigest (22) -
WEBrick
:: HTTPAuth :: Htgroup (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (44) -
WEBrick
:: HTTPResponse (22) -
WEBrick
:: HTTPServlet :: FileHandler (11) - WIN32OLE (11)
-
YAML
:: DBM (22) -
Zlib
:: Deflate (33) -
Zlib
:: GzipFile (11) -
Zlib
:: GzipWriter (22) -
Zlib
:: Inflate (11) -
Zlib
:: ZStream (55)
モジュール
- Abbrev (11)
-
CGI
:: QueryExtension (33) - CMath (24)
- Enumerable (36)
- Etc (44)
- Fiddle (33)
-
File
:: Constants (20) - FileUtils (22)
- Forwardable (22)
- GC (32)
-
GC
:: Profiler (11) - Gem (44)
-
Gem
:: LocalRemoteOptions (11) -
Gem
:: QuickLoader (22) -
Gem
:: SSL (11) -
Gem
:: Security (33) - IRB (11)
-
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 (22) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (77)
- Marshal (66)
- Math (22)
-
Net
:: HTTPHeader (22) - ObjectSpace (44)
-
OpenSSL
:: Buffering (11) -
OpenSSL
:: PKCS5 (11) -
OpenURI
:: Meta (11) -
OptionParser
:: Arguable (11) -
RDoc
:: Text (22) - RbConfig (44)
- Shellwords (77)
- Signal (11)
- SingleForwardable (22)
-
Socket
:: Constants (110) -
Sync
_ m (72) - Timeout (19)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: Config (66) -
WEBrick
:: HTTPUtils (33) - Zlib (44)
オブジェクト
- ENV (110)
-
Readline
:: HISTORY (22)
キーワード
- < (15)
- <= (9)
- == (11)
- === (11)
- > (15)
- >= (9)
- >> (6)
-
ALIGN
_ SHORT (11) - BasicAuth (11)
-
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - CONFIG (22)
- ConfigMap (11)
- Converters (11)
-
DEFAULT
_ BULK _ THRESHOLD (11) -
DEFAULT
_ OPTIONS (22) -
DIGEST
_ SHA1 (11) - DOSISH 対応 (11)
- DefaultMimeTypes (11)
- DigestAuth (11)
-
EMPTY
_ MARSHAL _ CHECKSUM (11) -
EMPTY
_ MARSHAL _ DATA (11) - FINISH (11)
-
FULL
_ FLUSH (11) - FileHandler (11)
-
GENERATOR
_ DIR (11) - GemPaths (11)
- GemVersions (11)
- General (11)
- HTTP (11)
-
HTTP
_ STATUS (11) - HandlerTable (11)
- Hash (11)
- HeaderConverters (11)
-
IP
_ ADD _ MEMBERSHIP (22) -
IP
_ ADD _ SOURCE _ MEMBERSHIP (22) -
IP
_ DROP _ MEMBERSHIP (22) -
IP
_ DROP _ SOURCE _ MEMBERSHIP (22) -
IP
_ MAX _ MEMBERSHIPS (22) - LIMITS (11)
-
LOCK
_ SH (11) - MACTURKISH (11)
-
MAJOR
_ VERSION (11) -
MAKEFILE
_ CONFIG (11) -
MARSHAL
_ FIELDS (11) -
MINOR
_ VERSION (11) -
MSG
_ FLUSH (22) - MacTurkish (11)
- Marshal (11)
- Marshal フォーマット (11)
-
NO
_ FLUSH (11) - NoDelegateMethods (6)
- OPS (11)
- OPT (11)
-
OPT
_ TABLE (11) -
PATH
_ SEPARATOR (11) - Policies (11)
- Rubyの起動 (11)
-
SCRIPT
_ LINES _ _ (11) -
SC
_ SHARED _ MEMORY _ OBJECTS (11) -
SC
_ SHELL (11) -
SC
_ THREAD _ PROCESS _ SHARED (11) -
SC
_ XOPEN _ SHM (11) - SH (6)
- SHA1 (22)
- SHA256 (22)
- SHA384 (11)
- SHA512 (11)
-
SHARE
_ DELETE (9) -
SHIFT
_ JIS (11) -
SHUT
_ RD (22) -
SHUT
_ RDWR (22) -
SHUT
_ WR (22) - SIZEOF (11)
-
SIZEOF
_ SHORT (11) -
SPECIFICATION
_ VERSION _ HISTORY (11) - SSL (11)
-
SYNC
_ FLUSH (11) -
Shift
_ JIS (11) -
TABLE
_ FOR _ ESCAPE _ HTML _ _ (11) -
TCP
_ NOPUSH (22) -
TYPE
_ SHORT (11) -
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - VERSION (11)
- [] (51)
-
_ httpdate (11) -
_ iso8601 (11) -
_ jisx0301 (11) -
_ parse (11) -
_ rfc2822 (11) -
_ rfc3339 (11) -
_ rfc822 (11) -
_ strptime (22) -
_ xmlschema (11) - abbrev (22)
- acosh (17)
- acosh! (6)
- activate (6)
- active? (12)
-
active
_ job? (6) -
active
_ jobs (6) -
active
_ jobs _ exist? (6) -
active
_ process _ controllers (6) -
add
_ bulk _ threshold _ option (11) -
add
_ schedule (6) -
add
_ specs (11) -
alias
_ command (18) -
alias
_ map (6) - aliases (11)
- append (18)
- assoc (11)
- atime (18)
- attributes (11)
- basename (18)
- begins? (11)
-
block
_ length (11) -
block
_ output _ synchronize (6) - blockdev? (18)
- build (55)
- build2 (11)
-
build
_ self _ signed _ cert (11) -
bulk
_ threshold (11) -
cache
_ data (22) - cascade (6)
- cat (18)
- cd (12)
- chardev? (18)
- chdir (6)
- chmod (18)
- chown (18)
- classify (11)
- clear (11)
- clone (11)
-
close
_ read (11) -
close
_ write (11) - closed? (11)
- command (6)
-
command
_ processor (6) - compact (13)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) -
compile
_ option (11) - concat (18)
- conf (11)
- config (44)
- cosh (17)
- cosh! (6)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) -
create
_ ext _ from _ hash (11) - ctime (18)
- cwd (6)
- debug (12)
- debug? (12)
-
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) -
deconstruct
_ keys (2) -
def
_ builtin _ commands (6) -
def
_ system _ command (12) - default (22)
-
default
_ proc (11) -
default
_ record _ separator (6) -
default
_ system _ path (6) - defaults (11)
- deflate (11)
- delegate (22)
- delete (40)
-
delete
_ if (22) - dig (9)
- digest (66)
-
digest
/ sha1 (11) -
digest
/ sha2 (11) -
digest
_ length (11) - dir (6)
-
dir
_ stack (6) - directory? (18)
- dirname (18)
- dirs (6)
- dump (22)
- dup (11)
- each (89)
-
each
_ active _ object (6) -
each
_ key (22) -
each
_ pair (22) -
each
_ value (22) - echo (18)
- empty? (11)
- eql? (11)
- equal? (11)
- escape (11)
- except (8)
- executable? (18)
-
executable
_ real? (18) - execute (11)
- exist? (18)
- exists? (18)
- fetch (44)
-
fetch
_ path (11) -
fetch
_ values (18) - file? (18)
- files (11)
- filter (18)
- filter! (12)
-
find
_ gems (11) - finish (132)
- finished (11)
- finished? (28)
- flatten (11)
- flock (11)
- flush (116)
-
flush
_ left (11) -
flush
_ next _ in (11) -
flush
_ next _ out (11) -
flush
_ sessions (11) - foreach (29)
- ftype (18)
- generate (22)
-
generate
_ line (11) - getopts (55)
- getwd (6)
- glob (18)
-
group
_ by (11) - grpowned? (18)
- gsub (11)
- gsub! (11)
-
handle
_ interrupt (11) -
has
_ key? (11) -
has
_ value? (11) - hash (242)
-
hash
_ old (11) - header (22)
- hexdigest (66)
- iflush (11)
- inactivate (6)
- include? (11)
- index (7)
- initialize (17)
- input (6)
- inspect (17)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - instance (22)
-
instance
_ delegate (11) - invert (55)
- ioflush (11)
- jobs (12)
-
jobs
_ exist? (6) - join (29)
-
json
_ create (143) -
keep
_ if (22) - key (11)
- key? (11)
- keys (11)
- kill (12)
-
kill
_ job (6) -
latest
_ cache _ data (11) -
latest
_ gc _ info (11) -
latest
_ specs (11) - length (11)
- link (18)
- list (11)
- load (11)
-
load
_ mime _ types (11) - lock (6)
- lshift! (11)
- lstat (18)
-
marshal
_ dump (66) -
marshal
_ load (44) -
marshal
_ version (11) - member? (11)
- merge (22)
- merge! (22)
- mkdir (18)
- modifiable (11)
- mtime (18)
- name (6)
-
named
_ captures (11) - new (166)
- notify (36)
- oflush (11)
-
ole
_ show _ help (11) - on (88)
- open (62)
-
optparse
/ shellwords (11) - out (18)
- owned? (18)
- params (11)
- parse (44)
-
parse
_ header (11) -
parse
_ line (11) -
pbkdf2
_ hmac _ sha1 (11) -
peek
_ result (11) - pipe? (18)
- popd (6)
- popdir (6)
- pretty (11)
-
process
_ args (1) -
process
_ controller (6) -
process
_ controllers _ exclusive (6) - push (77)
- pushd (6)
- pushdir (6)
- pwd (6)
- query (11)
- rassoc (11)
-
raw
_ data (11) - read (33)
-
read
_ all (22) -
read
_ cache _ data (11) - readable? (18)
-
readable
_ real? (18) - readlines (11)
- readlink (18)
-
record
_ separator (6) - refresh (33)
- refresh! (11)
- register (11)
- rehash (40)
- reject (66)
- reject! (22)
- rename (18)
- replace (22)
-
reset
_ cache _ for (11) - restore (55)
- result (11)
-
result
_ with _ hash (7) - rm (18)
- rmdir (18)
- rshift! (11)
-
ruby 1
. 9 feature (11) -
ruby2
_ keywords _ hash? (5) - rule (11)
-
run
_ config (6) - select (33)
- select! (22)
-
set
_ cache _ data (11) -
set
_ log (1) -
set
_ params (11) - setgid? (18)
- setuid? (18)
-
setup
_ params (11) -
sev
_ threshold (11) - sfork (6)
- shared? (6)
-
sharing
_ detection (11) - shebang (11)
- shell (23)
-
shell
/ builtin-command (6) -
shell
/ command-processor (6) -
shell
/ process-controller (6) -
shell
/ system-command (6) - shellescape (22)
- shelljoin (22)
- shellsplit (22)
- shellwords (11)
- shift (132)
-
short
_ name (11) -
show
_ all (11) -
show
_ hash (11) -
show
_ help (11) -
show
_ lookup _ failure (11) - shuffle (22)
- shuffle! (22)
- shutdown (33)
-
single
_ delegate (11) - size (29)
- size? (18)
- slice (13)
- sn (11)
- socket? (18)
- spawn (44)
-
spec
_ predecessors (11) -
specific
_ extra _ args _ hash (11) - specs (11)
- split (29)
-
ssl
_ params (11) - start (6)
-
start
_ import (6) - stat (29)
- sticky? (18)
- store (11)
-
stream
_ end? (11) -
strip
_ hashes (11) - sub (11)
- sub! (11)
-
super
_ each (6) - symlink (18)
- symlink? (18)
-
sync
_ lock (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) - table (11)
- take (22)
- tally (8)
- tee (18)
- terminate (6)
- test (18)
- timeout (19)
-
to
_ a (17) -
to
_ csv (11) -
to
_ h (117) -
to
_ hash (110) -
to
_ json (99) -
to
_ json _ raw _ object (11) -
to
_ proc (9) -
to
_ s (28) - transact (18)
-
transform
_ keys (18) -
transform
_ keys! (18) -
transform
_ values (16) -
transform
_ values! (16) - truncate (18)
-
try
_ convert (11) -
try
_ lock (6) -
type
_ params (11) - umask (6)
-
unalias
_ command (12) -
undef
_ system _ command (12) - unlink (18)
- unlock (6)
- unshift (33)
- update (22)
- utime (18)
- value (11)
- value? (11)
- values (11)
-
values
_ at (11) - verbose (12)
- verbose? (12)
-
verify
_ compaction _ references (5) - wait? (12)
-
wait
_ all _ jobs _ execution (6) -
wait
_ to _ finish _ all _ process _ controllers (6) -
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) -
with
_ defaults (11) - writable? (18)
-
writable
_ real? (18) - zero? (18)
- | (6)
- 制御構造 (11)
- 多言語化 (11)
- 環境変数 (11)
検索結果
先頭5件
-
FileUtils
# sh(*cmd) {|result , status| . . . } (18125.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 (12316.0) -
コマンドライン引数の --show-hash オプションを指定していた場合、true を 返します。そうでない場合は false を返します。
...コマンドライン引数の --show-hash オプションを指定していた場合、true を
返します。そうでない場合は false を返します。... -
shell
/ builtin-command (12000.0) -
Shell で使用するビルトインコマンドを定義しているライブラリです。
...Shell で使用するビルトインコマンドを定義しているライブラリです。... -
shell
/ command-processor (12000.0) -
Shell で使用可能なコマンドの大半を定義するライブラリです。
...Shell で使用可能なコマンドの大半を定義するライブラリです。... -
shell
/ process-controller (12000.0) -
プロセスを制御するためのクラスを定義したライブラリです。
プロセスを制御するためのクラスを定義したライブラリです。 -
shell
/ system-command (12000.0) -
-
Hash
. ruby2 _ keywords _ hash?(hash) -> bool (9300.0) -
Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。
...れていません。
ruby 2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。
//emlist[][ruby]{
ruby2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(k: 1) # => true
foo({k: 1}) # => false
//}
@see Module#ruby2_keywords, Proc#ruby2_keywords... -
Shell
:: ProcessController # shell -> Shell (9300.0) -
@todo
@todo -
Shell
# pushd(path = nil , &block) -> object (9260.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 (9260.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"... -
DOSISH 対応 (9228.0)
-
DOSISH 対応 ruby version 1.7 では、DOSISH対応(DOS/Windows のパス名の扱いに対する変 更)が含まれています。(現在の)変更点を以下に示します。
...DOSISH 対応
ruby version 1.7 では、DOSISH対応(DOS/Windows のパス名の扱いに対する変
更)が含まれています。(現在の)変更点を以下に示します。
なお、これらの変更は platform/mswin32 版、platform/mingw32
版の Ruby にのみあてはまります。......ライブレター対応
への対応が挙げられていますが、ドライブレター対応などの微妙な部分については現在もruby-listなどで議論が継続されています。
現時点では、Fileの各メソッドに対する\対応, マルチバイトパス名対応, UNC......001-06-04) [i586-mswin32]
"."
=> ruby 1.7.1 (2001-08-16) [i586-mswin32]
"C:\\foo"
p File.dirname("C:/foo")
p File.dirname("C:\\foo")
p File.dirname("C:foo")
=> ruby 1.6.4 (2001-06-04) [i586-mswin32]
"C:"
"."
"."
=> ruby 1.7.1 (2001-08-16... -
Hash
# hash -> Integer (9200.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Hash
# rehash -> self (9200.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...