別のキーワード
種類
- インスタンスメソッド (2972)
- 特異メソッド (1297)
- モジュール関数 (333)
ライブラリ
- ビルトイン (993)
- abbrev (24)
-
cgi
/ core (36) -
cgi
/ util (12) - cmath (24)
- coverage (7)
- csv (255)
- date (124)
- delegate (12)
-
digest
/ sha2 (12) - erb (8)
- forwardable (48)
-
irb
/ cmd / pushws (12) - json (120)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) - logger (25)
-
minitest
/ unit (1) -
net
/ http (24) -
net
/ pop (12) - objspace (36)
- openssl (324)
- optparse (156)
- ostruct (12)
- pp (24)
- psych (12)
- rake (48)
-
rdoc
/ generator / darkfish (12) -
rdoc
/ markup / to _ html _ crossref (12) -
rdoc
/ text (24) - readline (12)
- resolv (12)
-
rexml
/ document (24) -
rexml
/ parsers / pullparser (12) -
rinda
/ rinda (36) -
rinda
/ tuplespace (36) -
rubygems
/ command (48) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ installer (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ security (12) -
rubygems
/ server (12) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (48) -
rubygems
/ source _ info _ cache _ entry (12) -
rubygems
/ version (12) - shell (468)
-
shell
/ command-processor (402) -
shell
/ filter (378) -
shell
/ process-controller (48) -
shell
/ system-command (30) - shellwords (84)
- socket (12)
- sync (48)
- thread (6)
- timeout (21)
- uri (72)
-
webrick
/ accesslog (12) -
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htgroup (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httputils (24) - win32ole (12)
- zlib (36)
クラス
- Array (84)
- BasicSocket (12)
- BigDecimal (12)
- CGI (24)
-
CGI
:: Cookie (12) - CSV (240)
-
CSV
:: Row (3) -
CSV
:: Table (12) - Complex (12)
- Coverage (7)
- Data (3)
- Date (122)
- DateTime (26)
- Delegator (12)
-
Digest
:: SHA2 (12) - ERB (8)
- Exception (12)
- File (12)
-
Gem
:: Command (48) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: Installer (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Server (12) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (48) -
Gem
:: SourceInfoCacheEntry (12) -
Gem
:: Version (12) - Hash (557)
-
IRB
:: ExtendCommand :: PushWorkspace (12) - Logger (24)
-
Logger
:: Application (1) - MatchData (14)
-
MiniTest
:: Unit (1) -
Net
:: POP3 (12) - Object (12)
-
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: BN (24) -
OpenSSL
:: Config (12) -
OpenSSL
:: Digest :: SHA (36) -
OpenSSL
:: Digest :: SHA1 (36) -
OpenSSL
:: Digest :: SHA224 (36) -
OpenSSL
:: Digest :: SHA256 (36) -
OpenSSL
:: Digest :: SHA384 (36) -
OpenSSL
:: Digest :: SHA512 (36) -
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: SSL :: SSLServer (12) -
OpenSSL
:: X509 :: ExtensionFactory (12) - OpenStruct (24)
- OptionParser (144)
- PP (24)
-
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Generator :: Darkfish (12) -
RDoc
:: Markup :: ToHtmlCrossref (12) -
RDoc
:: Options (12) -
REXML
:: Parent (24) -
REXML
:: Parsers :: PullParser (12) -
Rake
:: TaskArguments (12) - Random (12)
- Range (12)
- Rational (12)
- Regexp (12)
-
Resolv
:: DNS :: Resource :: SOA (12) -
Rinda
:: TupleSpace (36) -
Rinda
:: TupleSpaceProxy (36) - Shell (468)
-
Shell
:: CommandProcessor (402) -
Shell
:: Filter (378) -
Shell
:: ProcessController (48) -
Shell
:: SystemCommand (30) - String (48)
- Struct (18)
- Symbol (12)
- Thread (12)
-
Thread
:: Queue (12) -
Thread
:: SizedQueue (24) - Time (14)
-
URI
:: FTP (12) -
URI
:: Generic (24) -
URI
:: HTTP (12) -
URI
:: LDAP (12) -
URI
:: MailTo (12) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htgroup (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) - WIN32OLE (12)
-
Zlib
:: Deflate (24) -
Zlib
:: GzipWriter (12)
モジュール
- Abbrev (12)
-
CGI
:: QueryExtension (24) - CMath (24)
- Enumerable (27)
- FileUtils (24)
- Forwardable (24)
- GC (30)
-
Gem
:: Security (12) -
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 (12) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (72)
- Marshal (48)
- Math (24)
-
Net
:: HTTPHeader (24) - ObjectSpace (48)
-
OpenSSL
:: PKCS5 (12) -
OptionParser
:: Arguable (12) -
RDoc
:: Text (24) - Shellwords (84)
- SingleForwardable (24)
-
Sync
_ m (48) - Timeout (21)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: HTTPUtils (24)
オブジェクト
- ENV (12)
-
Readline
:: HISTORY (12)
キーワード
- < (16)
- <= (10)
- == (12)
- === (12)
- > (16)
- >= (10)
- >> (6)
- Hash (12)
- Marshal (12)
- [] (54)
- []= (24)
-
_ httpdate (12) -
_ iso8601 (12) -
_ jisx0301 (12) -
_ parse (12) -
_ rfc2822 (12) -
_ rfc3339 (12) -
_ rfc822 (12) -
_ strptime (24) -
_ xmlschema (12) - abbrev (24)
- acosh (18)
- acosh! (6)
-
active
_ job? (6) -
add
_ delegate _ command _ to _ shell (6) -
add
_ schedule (6) -
add
_ specs (12) -
alias
_ command (18) - append (18)
- assoc (12)
- atime (18)
- basename (18)
- begins? (12)
- blockdev? (18)
- build (60)
- build2 (12)
-
build
_ self _ signed _ cert (12) -
bulk
_ threshold= (12) - cat (18)
- cd (12)
- chardev? (18)
- chdir (6)
- chmod (18)
- chown (18)
- cosh (18)
- cosh! (6)
-
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) -
create
_ ext _ from _ hash (12) - ctime (18)
- debug= (6)
-
deconstruct
_ keys (20) -
def
_ builtin _ commands (6) -
def
_ system _ command (12) - default (24)
- default= (12)
-
default
_ proc= (12) -
default
_ record _ separator (6) -
default
_ record _ separator= (6) -
default
_ system _ path (6) -
default
_ system _ path= (6) - defaults= (12)
- deflate (12)
- delegate (24)
- delete (42)
- dig (10)
- digest (72)
- directory? (18)
- dirname (18)
- dump (24)
- each (12)
- echo (18)
- eql? (12)
- equal? (12)
- escape (12)
- executable? (18)
-
executable
_ real? (18) - execute (12)
- exist? (18)
- exists? (18)
- fetch (48)
-
fetch
_ path (12) -
fetch
_ values (20) - file? (18)
- filter (36)
-
find
_ gems (12) - flatten (12)
- flock (12)
- flush (60)
-
flush
_ left (12) -
flush
_ sessions (12) - foreach (42)
- ftype (18)
- generate (12)
-
generate
_ line (12) - getopts (60)
- glob (18)
- grpowned? (18)
- gsub (12)
- gsub! (12)
-
handle
_ interrupt (12) -
has
_ key? (12) -
has
_ value? (12) - hexdigest (72)
- include? (12)
- index (7)
- initialize (12)
- input= (6)
-
install
_ system _ commands (12) - instance (24)
-
instance
_ delegate (12) - join (30)
-
json
_ create (156) - key (12)
- key? (12)
- kill (12)
-
kill
_ job (6) -
latest
_ gc _ info (12) - link (18)
- load (12)
-
load
_ mime _ types (12) - lock (6)
- lshift! (12)
- lstat (18)
-
marshal
_ load (48) - member? (12)
- merge (24)
- merge! (24)
-
method
_ added (6) - mkdir (18)
- mtime (18)
-
named
_ captures (12) - new (186)
- notify (12)
-
ole
_ show _ help (12) - on (96)
- open (66)
- out (18)
- owned? (18)
- params (12)
- params= (12)
- parse (48)
-
parse
_ header (12) -
parse
_ line (12) -
pbkdf2
_ hmac _ sha1 (12) - pipe? (18)
- pretty (12)
-
process
_ args (1) - push (72)
- pushd (6)
- pushdir (6)
- rassoc (12)
- read (36)
-
read
_ all (24) -
read
_ cache _ data (12) - readable? (18)
-
readable
_ real? (18) - readlines (12)
- readlink (18)
- refresh (24)
- register (12)
- rename (18)
- replace (24)
-
reset
_ cache _ for (12) - restore (12)
- result (7)
-
result
_ with _ hash (8) - rm (18)
- rmdir (18)
- rshift! (12)
- ruby (12)
- rule (12)
-
set
_ cache _ data (12) -
set
_ log (1) -
set
_ params (12) - setgid? (18)
- setuid? (18)
-
setup
_ params (12) -
sev
_ threshold= (12) - sfork (6)
-
sharing
_ detection (12) -
sharing
_ detection= (12) - shebang (12)
- shellescape (12)
- shelljoin (12)
- shellsplit (12)
- shellwords (12)
- shift (48)
-
show
_ all= (12) -
show
_ lookup _ failure (12) - shuffle! (24)
- shutdown (24)
-
single
_ delegate (12) - size (18)
- size? (18)
- socket? (18)
- spawn (48)
- split (30)
-
ssl
_ params (12) -
start
_ job (6) - stat (30)
- sticky? (18)
- store (12)
-
strip
_ hashes (12) - sub (12)
- sub! (12)
- symlink (18)
- symlink? (18)
-
sync
_ lock (6) -
sync
_ synchronize (6) -
sync
_ try _ lock (6) -
sync
_ unlock (6) - synchronize (6)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - table (12)
- take (24)
- tally (8)
- tee (18)
-
terminate
_ job (6) - test (18)
- timeout (21)
-
to
_ h (19) -
to
_ json (108) -
transform
_ keys (12) -
transform
_ keys! (12) - truncate (18)
-
try
_ lock (6) -
type
_ params (12) -
unalias
_ command (12) -
undef
_ system _ command (12) - unlink (18)
- unlock (6)
- unshift (36)
- update (24)
- utime (18)
- value? (12)
-
values
_ at (12) - verbose= (6)
-
verify
_ compaction _ references (6) -
waiting
_ job? (6) -
with
_ defaults (12) - writable? (18)
-
writable
_ real? (18) - zero? (18)
- | (6)
検索結果
先頭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... -
Shell
# pushd(path = nil , &block) -> object (9172.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 (9172.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
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (9106.0) -
@todo
...@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。... -
Shellwords
. # shellescape(str) -> String (9106.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...ようにエスケープします。
@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返します。
例:
require 'shellwords'
pattern = 'Jan 15'
puts "grep #{Shellwords.shellescape(pattern)} file"
# => gre... -
Shellwords
. # shelljoin(array) -> String (9106.0) -
配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。
...エスケープには、Shellwords.#shellescape と
同じ規則が適用されます。
@param array エスケープ対象の文字列を要素とする配列を指定します。
@return エスケープ結果を連結した文字列を返します。
例:
require 'shellwords'
patter......n = 'Jan 15'
file = 'file name with spaces'
puts Shellwords.shelljoin(['grep', pattern, file])
# => grep Jan\ 15 file\ name\ with\ spaces... -
Shellwords
. # shellsplit(line) -> [String] (9106.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...配列を返します。
空白、シングルクォート (')、ダブルクォート (")、バックスラッシュ (\)
を解釈します。
@param line 分割の対象となる文字列を指定します。
@return 分割結果の各文字列を要素とする配列を返します。
@raise Ar......ォートが現れた場合に発生します。
例:
require 'shellwords'
p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]
p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D... -
Shellwords
. # shellwords(line) -> [String] (9106.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...配列を返します。
空白、シングルクォート (')、ダブルクォート (")、バックスラッシュ (\)
を解釈します。
@param line 分割の対象となる文字列を指定します。
@return 分割結果の各文字列を要素とする配列を返します。
@raise Ar......ォートが現れた場合に発生します。
例:
require 'shellwords'
p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]
p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D... -
Zlib
:: Deflate # flush(flush = Zlib :: SYNC _ FLUSH) -> String (6312.0) -
deflate('', flush) と同じです。flush が 省略された時は Zlib::SYNC_FLUSH が使用されます。 このメソッドはスクリプトの可読性のために提供されています。
...deflate('', flush) と同じです。flush が
省略された時は Zlib::SYNC_FLUSH が使用されます。
このメソッドはスクリプトの可読性のために提供されています。
@param flush Zlib::NO_FLUSH Zlib::SYNC_FLUSH Zlib::FULL_FLUSH などを指定します。
requir......:FINISH)
dez.close
p comp_str
p Zlib::Inflate.inflate(comp_str)
end
def case2
dez = Zlib::Deflate.new
comp_str = dez.deflate('hoge')
comp_str << dez.flush
comp_str << dez.deflate(' fuga')
comp_str << dez.flush
comp_str << dez.deflate(' end', Zlib::FINISH)......dez.close
p comp_str
p Zlib::Inflate.inflate(comp_str)
end
case1
case2
#=> "x\234\313\310OOUH+MOTH\315K\001\000!\251\004\276"
#=> "hoge fuga end"
#=> "x\234\312\310OO\005\000\000\000\377\377RH+MO\004\000\000\000\377\377SH\315K\001\000!\251\004\276"
#=> "hoge fuga end"... -
Zlib
:: GzipWriter # flush(flush = Zlib :: SYNC _ FLUSH) -> self (6306.0) -
まだ書き出されていないデータをフラッシュします。
...フラッシュします。
flush は Zlib::Deflate#deflate と同じです。
省略時は Zlib::SYNC_FLUSH が使用されます。
flush に Zlib::NO_FLUSH を指定することは無意味です。
@param flush Zlib::NO_FLUSH Zlib::SYNC_FLUSH Zlib::FULL_FLUSH などを指定します。
req.......gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.puts "fuga"
gz.flush
gz.puts "ugo\n"
gz.flush
}
p File.read(filename)
end
case1
#=> "\037\213\b\000p\257pH\002\003K+MO\344*M\317\347\002\000<\326\000\371\t\000...