ライブラリ
- ビルトイン (84)
- abbrev (1)
- bigdecimal (1)
-
cgi
/ core (1) -
cgi
/ session (2) - csv (5)
- dbm (1)
- delegate (2)
-
digest
/ sha2 (2) - etc (2)
- forwardable (4)
- gdbm (1)
-
io
/ console (3) - json (9)
- logger (2)
- openssl (13)
- optparse (9)
- ostruct (1)
- prettyprint (1)
- psych (4)
- rake (5)
-
rdoc
/ generator / darkfish (1) -
rdoc
/ text (1) - resolv (1)
-
rexml
/ document (2) -
rexml
/ parsers / pullparser (1) -
rinda
/ rinda (3) -
rinda
/ tuplespace (4) - rss (30)
- rubygems (2)
-
rubygems
/ command (5) -
rubygems
/ config _ file (4) -
rubygems
/ dependency _ list (1) -
rubygems
/ installer (1) -
rubygems
/ package / tar _ writer (1) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ server (1) -
rubygems
/ source _ index (2) -
rubygems
/ source _ info _ cache (5) -
rubygems
/ source _ info _ cache _ entry (1) -
rubygems
/ spec _ fetcher (1) -
rubygems
/ version (2) - sdbm (1)
- set (1)
- shell (96)
-
shell
/ builtin-command (10) -
shell
/ command-processor (68) -
shell
/ filter (78) -
shell
/ process-controller (15) -
shell
/ system-command (15) - shellwords (3)
- stringio (1)
- sync (10)
- thread (4)
- thwait (1)
-
webrick
/ httpauth / htdigest (2) -
webrick
/ httpauth / htgroup (1) -
webrick
/ httpauth / htpasswd (1) -
win32
/ registry (1) -
yaml
/ dbm (2) - zlib (12)
クラス
- Array (9)
- BigDecimal (1)
-
CGI
:: Session :: FileStore (1) -
CGI
:: Session :: NullStore (1) - CSV (1)
-
CSV
:: Row (1) -
CSV
:: Table (3) - Complex (1)
- DBM (1)
- Delegator (2)
-
Digest
:: SHA2 (2) -
Etc
:: Passwd (2) - File (1)
- Float (1)
- GDBM (1)
-
Gem
:: Command (5) -
Gem
:: ConfigFile (4) -
Gem
:: DependencyList (1) -
Gem
:: Installer (1) -
Gem
:: Package :: TarWriter (1) -
Gem
:: RemoteFetcher (1) -
Gem
:: Server (1) -
Gem
:: SourceIndex (2) -
Gem
:: SourceInfoCache (5) -
Gem
:: SourceInfoCacheEntry (1) -
Gem
:: SpecFetcher (1) -
Gem
:: Version (2) - Hash (61)
- IO (7)
- Logger (2)
- Object (2)
-
OpenSSL
:: ASN1 :: ObjectId (2) -
OpenSSL
:: BN (2) -
OpenSSL
:: Config (1) -
OpenSSL
:: Engine (1) -
OpenSSL
:: SSL :: SSLContext (2) -
OpenSSL
:: SSL :: SSLServer (1) -
OpenSSL
:: X509 :: Extension (1) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
OpenSSL
:: X509 :: Name (1) - OpenStruct (1)
- OptionParser (8)
- PrettyPrint (1)
-
Psych
:: Visitors :: YAMLTree (4) -
RDoc
:: Generator :: Darkfish (1) -
RDoc
:: Options (3) -
REXML
:: Parent (2) -
REXML
:: Parsers :: PullParser (1) -
RSS
:: Maker :: RSSBase (1) -
RSS
:: Maker :: XMLStyleSheets :: XMLStyleSheet (12) -
RSS
:: XMLStyleSheet (12) -
Rake
:: TaskArguments (2) - Random (2)
- Rational (2)
-
Resolv
:: DNS :: Resource :: SOA (1) -
Rinda
:: TupleEntry (1) -
Rinda
:: TupleSpace (3) -
Rinda
:: TupleSpaceProxy (3) - SDBM (1)
- Set (1)
- Shell (96)
-
Shell
:: AppendFile (1) -
Shell
:: AppendIO (1) -
Shell
:: BuiltInCommand (2) -
Shell
:: Cat (1) -
Shell
:: CommandProcessor (68) -
Shell
:: Concat (1) -
Shell
:: Echo (1) -
Shell
:: Filter (78) -
Shell
:: Glob (1) -
Shell
:: ProcessController (15) -
Shell
:: SystemCommand (15) -
Shell
:: Tee (1) -
Shell
:: Void (1) - String (3)
- StringIO (1)
-
Thread
:: Queue (2) -
Thread
:: SizedQueue (2) - ThreadsWait (1)
-
WEBrick
:: HTTPAuth :: Htdigest (2) -
WEBrick
:: HTTPAuth :: Htgroup (1) -
WEBrick
:: HTTPAuth :: Htpasswd (1) -
Win32
:: Registry (1) -
YAML
:: DBM (2) -
Zlib
:: Deflate (3) -
Zlib
:: GzipFile (1) -
Zlib
:: GzipWriter (2) -
Zlib
:: Inflate (1) -
Zlib
:: ZStream (5)
モジュール
-
CGI
:: QueryExtension (1) - DublinCoreModel (3)
- Enumerable (2)
- FileUtils (2)
- Forwardable (2)
-
Gem
:: LocalRemoteOptions (1) -
Gem
:: QuickLoader (2) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (1)
-
OpenSSL
:: Buffering (1) -
OptionParser
:: Arguable (1) -
RDoc
:: Text (1) -
RSS
:: XMLStyleSheetMixin (2) - SingleForwardable (2)
-
Sync
_ m (10)
キーワード
- + (1)
- < (1)
- == (1)
- === (1)
- > (1)
- >> (1)
- Marshal (1)
- [] (4)
- []= (2)
- abbrev (1)
- active? (2)
-
active
_ job? (1) -
active
_ jobs (1) -
active
_ jobs _ exist? (1) -
add
_ bulk _ threshold _ option (1) -
add
_ schedule (1) - alternate (2)
- alternate= (2)
- append (3)
- assoc (1)
- atime (3)
- basename (3)
- begins? (1)
-
block
_ length (1) - blockdev? (3)
-
bulk
_ threshold (1) -
bulk
_ threshold= (1) - cat (3)
- cd (1)
- chardev? (3)
- charset (2)
- charset= (2)
- chdir (1)
-
check
_ point (3) - chmod (3)
- chown (3)
- classify (1)
- clear (1)
- clone (1)
-
close
_ read (1) -
close
_ write (1) - closed? (1)
- command (1)
-
command
_ processor (1) -
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) - concat (3)
-
create
_ ext _ from _ hash (1) - ctime (3)
- cwd (1)
-
dc
_ publisher (1) -
dc
_ publisher= (1) -
dc
_ publishers (1) - debug (1)
- debug= (1)
- debug? (1)
- default (2)
- default= (1)
-
default
_ proc (1) -
default
_ proc= (1) - defaults (1)
- defaults= (1)
- deflate (1)
- delegate (2)
- delete (5)
-
delete
_ if (2) -
digest
_ length (1) - dir (1)
-
dir
_ stack (1) - directory? (3)
- dirname (3)
- dirs (1)
- dup (1)
- each (13)
-
each
_ key (1) -
each
_ pair (1) -
each
_ value (2) - echo (3)
- empty? (1)
- eql? (1)
- equal? (1)
- executable? (3)
-
executable
_ real? (3) - exist? (3)
- exists? (3)
- fetch (1)
-
fetch
_ path (1) - file? (3)
- files (1)
-
find
_ system _ command (3) - finish (7)
-
finish
_ all _ jobs (3) - finished (1)
- finished? (3)
- flatten (1)
- flock (1)
- flush (14)
-
flush
_ left (1) -
flush
_ next _ in (1) -
flush
_ next _ out (1) -
flush
_ sessions (1) - foreach (3)
- ftype (3)
- getopts (1)
- getwd (1)
- glob (3)
-
group
_ by (1) - grpowned? (3)
- gsub! (1)
-
has
_ key? (1) -
has
_ value? (1) - hash (4)
-
hash
_ old (1) - href (2)
- href= (2)
- identical? (3)
- iflush (1)
- include? (1)
- index (1)
- initialize (1)
- input (1)
- input= (4)
- inspect (1)
-
instance
_ delegate (1) - ioflush (1)
- jobs (2)
-
jobs
_ exist? (1) - join (3)
-
keep
_ if (1) - key (1)
- key? (1)
- kill (2)
-
kill
_ job (1) -
latest
_ cache _ data (1) -
latest
_ specs (1) - length (1)
- link (3)
- lock (1)
- lshift! (1)
- lstat (3)
-
marshal
_ dump (6) -
marshal
_ load (4) - media (2)
- media= (2)
- member? (1)
- merge (1)
- merge! (2)
- mkdir (3)
- modifiable (1)
- mtime (3)
- name (1)
- notify (5)
- oflush (1)
- on (8)
- open (3)
- out (3)
- owned? (3)
- pipe? (3)
- popd (1)
- popdir (1)
-
process
_ controller (1) - push (7)
-
push
_ all _ highest _ version _ gems _ on _ load _ path (1) -
push
_ gem _ version _ on _ load _ path (1) - pushd (1)
- pushdir (1)
- pwd (1)
- rassoc (1)
- read (2)
-
read
_ all (2) -
read
_ cache _ data (1) - readable? (3)
-
readable
_ real? (3) - readlink (3)
-
record
_ separator (1) -
record
_ separator= (1) - refresh (3)
- refresh! (1)
- rehash (4)
- reject (4)
- reject! (2)
- rename (3)
- replace (1)
-
reset
_ cache _ for (1) - restore (2)
- rm (3)
- rmdir (3)
- rshift! (1)
- ruby (1)
- rule (1)
- select (2)
- select! (2)
-
set
_ params (1) - setgid? (3)
- setuid? (3)
-
sev
_ threshold (1) -
sev
_ threshold= (1) - sfork (1)
- shared? (1)
- shebang (1)
- shell (2)
- shell= (1)
- shellescape (1)
- shelljoin (1)
- shellsplit (1)
- shift (5)
-
short
_ name (1) -
show
_ all (1) -
show
_ all= (1) -
show
_ hash (1) -
show
_ help (1) -
show
_ lookup _ failure (1) - shuffle (2)
- shuffle! (2)
- shutdown (1)
-
single
_ delegate (1) - size (4)
- size? (3)
- sn (1)
- socket? (3)
-
spec
_ predecessors (1) - split (3)
- start (1)
-
start
_ export (1) -
start
_ import (1) -
start
_ job (1) - stat (3)
- sticky? (3)
- store (1)
-
stream
_ end? (1) -
super
_ each (1) - symlink (3)
- symlink? (3)
-
sync
_ lock (1) -
sync
_ sh _ locker (1) -
sync
_ sh _ locker= (1) -
sync
_ shared? (1) -
sync
_ try _ lock (1) -
sync
_ unlock (1) - system (3)
-
system
_ path (1) -
system
_ path= (1) - take (2)
- tee (3)
- terminate (1)
-
terminate
_ job (1) - test (3)
- title (2)
- title= (2)
-
to
_ a (1) -
to
_ csv (1) -
to
_ h (3) -
to
_ hash (2) -
to
_ json (9) -
to
_ s (2) - transact (3)
- truncate (3)
-
try
_ lock (1) - type (2)
- type= (2)
- umask (1)
- umask= (1)
- unlink (3)
- unlock (1)
- unshift (3)
- update (2)
- utime (3)
- value (1)
- value? (1)
- values (1)
-
values
_ at (1) - verbose (1)
- verbose= (1)
- verbose? (1)
- wait? (2)
-
wait
_ all _ jobs _ execution (1) -
waiting
_ job? (1) -
waiting
_ jobs (1) -
waiting
_ jobs _ exist? (1) -
with
_ defaults (1) -
world
_ readable? (3) -
world
_ writable? (3) - writable? (3)
-
writable
_ real? (3) -
xml
_ stylesheets (2) -
xml
_ stylesheets= (1) - zero? (3)
- | (1)
検索結果
先頭5件
-
Gem
:: Installer # shebang(bin _ file _ name) -> String (27604.0) -
実行ファイル内で使用する shebang line (#! line) を表す文字列を返します。
実行ファイル内で使用する shebang line (#! line) を表す文字列を返します。
@param bin_file_name 実行ファイルの名前を指定します。 -
Hash
# clone -> Hash (27604.0) -
selfと同じ内容を持つ新しいハッシュを返します。
selfと同じ内容を持つ新しいハッシュを返します。
clone は frozen singleton-class の情報も含めてコピーしますが、
dup は内容と tainted だけをコピーします。
またどちらのメソッドも要素それ自体のコピーはしません。
つまり参照しているオブジェクトが変わらない「浅い(shallow)」コピーを行います。
//emlist[例][ruby]{
h1 = {"have" => "have a","as" => "as a" }
h2 = h1.dup
h2["have"] = "has"
p h2 #=> {"have"=>"has", "as"=>... -
Hash
# each _ value {|value| . . . } -> self (27604.0) -
ハッシュの値を引数としてブロックを評価します。
ハッシュの値を引数としてブロックを評価します。
反復の際の評価順序はキーが追加された順です。
ブロック付きの場合selfを、
無しで呼ばれた場合 Enumerator を返します。
//emlist[例][ruby]{
{:a=>1, :b=>2}.each_value {|v| p v}
#=> 1
# 2
p({:a=>1, :b=>2}.each_value) # => #<Enumerator: {:a=>1, :b=>2}:each_value>
//}
@see Hash#each_pair,Hash#each_key -
Hash
# has _ value?(value) -> bool (27604.0) -
ハッシュが value を値として持つ時真を返します。 値の一致判定は == で行われます。
ハッシュが value を値として持つ時真を返します。
値の一致判定は == で行われます。
@param value 探索する値を指定します。
//emlist[][ruby]{
p({1 => "one"}.value?("one")) #=> true
p({1 => "one"}.value?("two")) #=> false
//}
@see Hash#key? -
Hash
# rehash -> self (27604.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] #=>... -
Hash
# select {|key , value| . . . } -> Hash (27604.0) -
key, value のペアについてブロックを評価し,真となるペアだけを含む ハッシュを生成して返します。
key, value のペアについてブロックを評価し,真となるペアだけを含む
ハッシュを生成して返します。
ブロックが与えられなかった場合は、自身と select から生成した
Enumerator オブジェクトを返します。
//emlist[][ruby]{
h = { "a" => 100, "b" => 200, "c" => 300 }
h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300}
h.select {|k,v| v < 200} #=> {"a" => 100}
//}
@see Hash#select!, ... -
Hash
# shift -> [object , object] | nil (27604.0) -
ハッシュからキーが追加された順で先頭の要素をひとつ取り除き、 [key, value]という配列として返します。
ハッシュからキーが追加された順で先頭の要素をひとつ取り除き、
[key, value]という配列として返します。
shiftは破壊的メソッドです。selfは要素を取り除かれた残りのハッシュに変更されます。
ハッシュが空の場合、デフォルト値(Hash#defaultまたはHash#default_procのブロックの値か、どちらもnilならばnil)
を返します(このとき、[key,value] という形式の値を返すわけではないことに注意)。
将来のバージョン(Ruby 3.2を予定)ではデフォルト値に関わらず nil になる予定なので、デフォルト値を設定しているハッシュで
shift ... -
Hash
# to _ hash -> self (27604.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}
@see Object#to_hash, Hash#to_h -
Hash
# value?(value) -> bool (27604.0) -
ハッシュが value を値として持つ時真を返します。 値の一致判定は == で行われます。
ハッシュが value を値として持つ時真を返します。
値の一致判定は == で行われます。
@param value 探索する値を指定します。
//emlist[][ruby]{
p({1 => "one"}.value?("one")) #=> true
p({1 => "one"}.value?("two")) #=> false
//}
@see Hash#key? -
Logger
# sev _ threshold -> Integer (27604.0) -
レシーバにセットされているログレベルを取得します。
レシーバにセットされているログレベルを取得します。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.level # => 0
logger.level = Logger::Severity::ERROR
logger.level # => 3
//} -
Logger
# sev _ threshold=(level) (27604.0) -
Logger オブジェクトのログレベルを設定します。ログレベルがこれより低いメッセージは 出力されません。
Logger オブジェクトのログレベルを設定します。ログレベルがこれより低いメッセージは
出力されません。
@param level ログレベルを指定します。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.level # => 0
logger.level = Logger::Severity::ERROR # => 3
logger.level # => 3
//} -
OpenSSL
:: ASN1 :: ObjectId # short _ name -> String | nil (27604.0) -
オブジェクト識別子に対応する short name を返します。
オブジェクト識別子に対応する short name を返します。
例:
require "openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.sn #=> "subjectAltName"
@see OpenSSL::ASN1::ObjectId#ln -
OpenSSL
:: BN # rshift!(n) -> self (27604.0) -
自身を n ビット右シフトします。 [[m:OpenSSL::BN#>>]と異なり、破壊的メソッドです。
自身を n ビット右シフトします。
[[m:OpenSSL::BN#>>]と異なり、破壊的メソッドです。
//emlist[][ruby]{
require 'openssl'
bn = 8.to_bn
bn.rshift!(1) # => #<OpenSSL::BN 4>
bn # => #<OpenSSL::BN 4>
//}
@param n シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#>> -
OpenSSL
:: Engine # finish -> nil (27604.0) -
engine を終了させ、内部に保持しているデータを破棄します。
engine を終了させ、内部に保持しているデータを破棄します。 -
Psych
:: Visitors :: YAMLTree # finish -> Psych :: Nodes :: Stream|nil (27604.0) -
変換を終了し、構築した AST を返します。
変換を終了し、構築した AST を返します。
このメソッドは2回呼び出さないでください。
@see Psych::Visitors::YAMLTree#tree -
Psych
:: Visitors :: YAMLTree # finished -> bool (27604.0) -
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば 真を返します。
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば
真を返します。
まだならば偽を返します。 -
Psych
:: Visitors :: YAMLTree # finished? -> bool (27604.0) -
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば 真を返します。
Psych::Visitors::YAMLTree#finish をすでに呼び出しているならば
真を返します。
まだならば偽を返します。 -
RDoc
:: Generator :: Darkfish # initialize(store , options) -> RDoc :: Generator :: Darkfish (27604.0) -
RDoc::Generator::Darkfish オブジェクトを初期化します。
RDoc::Generator::Darkfish オブジェクトを初期化します。
@param store RDoc::Store オブジェクトを指定します。
@param options RDoc::Options オブジェクトを指定します。 -
Shell
# delete(*filename) -> Integer (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
# executable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
# executable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
# file?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file? -
Shell
# readable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable? -
Shell
# readable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable_real? -
Shell
# writable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable? -
Shell
# writable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real? -
Shell
:: CommandProcessor # delete(*filename) -> Integer (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # executable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: CommandProcessor # executable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: CommandProcessor # file?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file? -
Shell
:: CommandProcessor # readable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable? -
Shell
:: CommandProcessor # readable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable_real? -
Shell
:: CommandProcessor # writable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable? -
Shell
:: CommandProcessor # writable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real? -
Shell
:: Filter # delete(*filename) -> Integer (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # executable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: Filter # executable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: Filter # file?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file? -
Shell
:: Filter # readable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable? -
Shell
:: Filter # readable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable_real? -
Shell
:: Filter # writable?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable? -
Shell
:: Filter # writable _ real?(file) -> bool (27604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real? -
YAML
:: DBM # to _ hash -> Hash (27604.0) -
自身のキー、値をハッシュにしたものを返します。
自身のキー、値をハッシュにしたものを返します。 -
Zlib
:: ZStream # finished? -> bool (27604.0) -
ストリームへの入力が終了している時に真を返します。
ストリームへの入力が終了している時に真を返します。 -
BigDecimal
# hash -> Integer (27304.0) -
self のハッシュ値を返します。
self のハッシュ値を返します。
符号、小数部、指数部が同じ場合に同じハッシュ値を返します。 -
Digest
:: SHA2 # block _ length -> Integer (27304.0) -
ダイジェストのブロック長を返します。
ダイジェストのブロック長を返します。 -
Digest
:: SHA2 # digest _ length -> Integer (27304.0) -
ダイジェストのハッシュ値のバイト長を返します。
ダイジェストのハッシュ値のバイト長を返します。 -
Float
# hash -> Integer (27304.0) -
ハッシュ値を返します。
ハッシュ値を返します。
//emlist[例][ruby]{
pi1 = 3.14
pi2 = 3.14
pi3 = 3.1415
pi1.hash # => 335364239
pi2.hash # => 335364239
pi3.hash # => 420540030
//} -
Hash
# clear -> self (27304.0) -
ハッシュの中身を空にします。
ハッシュの中身を空にします。
空にした後のselfを返します。
デフォルト値の設定はクリアされません。
//emlist[例][ruby]{
h = Hash.new("default value")
h[:some] = "some"
p h #=> {:some=>"some"}
h.clear
p h #=> {}
p h.default #=> "default value"
//} -
Hash
# default -> object | nil (27304.0) -
ハッシュのデフォルト値を返します。
ハッシュのデフォルト値を返します。
ハッシュのデフォルト値がブロックで与えられている場合、 1 番目の形式だと
返り値が nil になることに注意してください。この場合、ハッシュのデフォルト値に
ついて調べるには 2 番目の形式か Hash#default_proc を使ってください。
2 番目の形式はハッシュがデフォルト値としてブロックを持つ場合に、
self と引数 key をブロックに渡して評価し、その結果を返します。
@param key デフォルトのブロックにキーとして渡されます。
//emlist[例][ruby]{
h = Hash.new("default")
p h.... -
Hash
# default(key) -> object | nil (27304.0) -
ハッシュのデフォルト値を返します。
ハッシュのデフォルト値を返します。
ハッシュのデフォルト値がブロックで与えられている場合、 1 番目の形式だと
返り値が nil になることに注意してください。この場合、ハッシュのデフォルト値に
ついて調べるには 2 番目の形式か Hash#default_proc を使ってください。
2 番目の形式はハッシュがデフォルト値としてブロックを持つ場合に、
self と引数 key をブロックに渡して評価し、その結果を返します。
@param key デフォルトのブロックにキーとして渡されます。
//emlist[例][ruby]{
h = Hash.new("default")
p h.... -
Hash
# default=(value) (27304.0) -
ハッシュのデフォルト値を value に変更します。対応する値が存 在しないキーで検索した時にはこの値を返すようになります。
ハッシュのデフォルト値を value に変更します。対応する値が存
在しないキーで検索した時にはこの値を返すようになります。
デフォルト値(ブロックを含む)が既に設定してあった場合も value で上書きします。
@param value 設定するデフォルト値です。
@return value を返します。
//emlist[例][ruby]{
h = {}
p h.default #=>nil
h.default = "default"
p h.default #=>"default"
//}
@see Hash#default -
Hash
# default _ proc -> Proc | nil (27304.0) -
ハッシュのデフォルト値を返す Proc オブジェクトを返します。 ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。
ハッシュのデフォルト値を返す Proc オブジェクトを返します。
ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。
//emlist[例][ruby]{
h = Hash.new {|hash, key| "The #{key} not exist in #{hash.inspect}"}
p h.default #=> nil
p block = h.default_proc #=> #<Proc:0x0x401a9ff4>
p block.call({},:foo) #=> "The foo not exist in {}"
h... -
Hash
# default _ proc=(pr) (27304.0) -
ハッシュのデフォルト値を返す Proc オブジェクトを 変更します。
ハッシュのデフォルト値を返す Proc オブジェクトを
変更します。
以前のデフォルトは値(Hash#default)の場合も
Proc の場合(Hash#default_proc)でも上書きされます。
引数には to_proc で Proc オブジェクトに変換できる
オブジェクトも受け付けます。
nil を指定した場合は現在の Hash#default_proc をクリアします。
@param pr デフォルト値を返す手続きオブジェクト
//emlist[例][ruby]{
h = {}
h.default_proc = proc do |hash, key|
hash[ke... -
Hash
# delete(key) -> object | nil (27304.0) -
key に対応する要素を取り除きます。
key に対応する要素を取り除きます。
@param key 取り除くキーを指定します。
@return 取り除かれた要素の値を返します。
key に対応する要素が存在しない時には nil を返します。
与えられたブロックは key にマッチする要素がなかった時に評価され、その結果を返します。
//emlist[例][ruby]{
h = {:ab => "some" , :cd => "all"}
p h.delete(:ab) #=> "some"
p h.delete(:ef) #=> nil
p h.delete(:ef){|key|"#{k... -
Hash
# delete(key) {|key| . . . } -> object (27304.0) -
key に対応する要素を取り除きます。
key に対応する要素を取り除きます。
@param key 取り除くキーを指定します。
@return 取り除かれた要素の値を返します。
key に対応する要素が存在しない時には nil を返します。
与えられたブロックは key にマッチする要素がなかった時に評価され、その結果を返します。
//emlist[例][ruby]{
h = {:ab => "some" , :cd => "all"}
p h.delete(:ab) #=> "some"
p h.delete(:ef) #=> nil
p h.delete(:ef){|key|"#{k... -
Hash
# delete _ if -> Enumerator (27304.0) -
キーと値を引数としてブロックを評価した結果が真であ るような要素を self から削除します。
キーと値を引数としてブロックを評価した結果が真であ
るような要素を self から削除します。
delete_if は常に self を返します。
reject! は、要素を削除しなかった場合には nil を返し、
そうでなければ self を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
h = { 2 => "8" ,4 => "6" ,6 => "4" ,8 => "2" }
p h.reject!{|key, value| key.to_i < value.to_i } #=> { 6 => "4", 8 =... -
Hash
# delete _ if {|key , value| . . . } -> self (27304.0) -
キーと値を引数としてブロックを評価した結果が真であ るような要素を self から削除します。
キーと値を引数としてブロックを評価した結果が真であ
るような要素を self から削除します。
delete_if は常に self を返します。
reject! は、要素を削除しなかった場合には nil を返し、
そうでなければ self を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
h = { 2 => "8" ,4 => "6" ,6 => "4" ,8 => "2" }
p h.reject!{|key, value| key.to_i < value.to_i } #=> { 6 => "4", 8 =... -
Hash
# each _ value -> Enumerator (27304.0) -
ハッシュの値を引数としてブロックを評価します。
ハッシュの値を引数としてブロックを評価します。
反復の際の評価順序はキーが追加された順です。
ブロック付きの場合selfを、
無しで呼ばれた場合 Enumerator を返します。
//emlist[例][ruby]{
{:a=>1, :b=>2}.each_value {|v| p v}
#=> 1
# 2
p({:a=>1, :b=>2}.each_value) # => #<Enumerator: {:a=>1, :b=>2}:each_value>
//}
@see Hash#each_pair,Hash#each_key -
Hash
# equal?(other) -> bool (27304.0) -
指定された other が self 自身である場合のみ真を返します。
指定された other が self 自身である場合のみ真を返します。
@param other 自身と比較したい Hash オブジェクトを指定します。
//emlist[例][ruby]{
p({}.equal?({})) #=> false
a = {}
p a.equal?(a) #=> true
//}
@see Hash#== -
Hash
# flatten(level = 1) -> Array (27304.0) -
自身を平坦化した配列を生成して返します。
自身を平坦化した配列を生成して返します。
全てのキーと値を新しい配列の要素として展開します。
Array#flatten と違って、デフォルトではこのメソッドは自身を
再帰的に平坦化しません。level を指定すると指定されたレベルまで
再帰的に平坦化します。
@param level 展開するレベル
//emlist[例][ruby]{
a = {1=> "one", 2 => [2,"two"], 3 => "three"}
a.flatten #=> [1, "one", 2, [2, "two"], 3, "three"]
a.flatten(1) #=> [1, ... -
Hash
# length -> Integer (27304.0) -
ハッシュの要素の数を返します。
ハッシュの要素の数を返します。
//emlist[][ruby]{
h = { "d" => 100, "a" => 200, "v" => 300, "e" => 400 }
h.length #=> 4
h.size #=> 4
h.delete("a") #=> 200
h.length #=> 3
h.size #=> 3
//} -
Hash
# replace(other) -> self (27304.0) -
ハッシュの内容を other の内容で置き換えます。
ハッシュの内容を other の内容で置き換えます。
デフォルト値の設定もotherの内容になります。
otherがハッシュではない場合、otherのメソッドto_hashを使って暗黙の変換を試みます。
self = other.to_hash.dup と同じです。
@param other ハッシュまたはメソッド to_hash でハッシュに変換できるオブジェクトです。
@return self を返します。
//emlist[例][ruby]{
foo = {1 => 'a', 2 => 'b'}
bar = {2 => 'B', 3 => 'C'}
foo.replace(b... -
Hash
# select -> Enumerator (27304.0) -
key, value のペアについてブロックを評価し,真となるペアだけを含む ハッシュを生成して返します。
key, value のペアについてブロックを評価し,真となるペアだけを含む
ハッシュを生成して返します。
ブロックが与えられなかった場合は、自身と select から生成した
Enumerator オブジェクトを返します。
//emlist[][ruby]{
h = { "a" => 100, "b" => 200, "c" => 300 }
h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300}
h.select {|k,v| v < 200} #=> {"a" => 100}
//}
@see Hash#select!, ... -
Hash
# values -> [object] (27304.0) -
ハッシュの全値の配列を返します。
ハッシュの全値の配列を返します。
//emlist[例][ruby]{
h1 = { "a" => 100, 2 => ["some"], :c => "c" }
p h1.values #=> [100, ["some"], "c"]
//}
@see Hash#keys,Hash#to_a -
Hash
# values _ at(*keys) -> [object] (27304.0) -
引数で指定されたキーに対応する値の配列を返します。
引数で指定されたキーに対応する値の配列を返します。
キーに対応する要素がなければデフォルト値が使用されます。
@param keys キーを 0 個以上指定します。
@return 引数で指定されたキーに対応する値の配列を返します。
引数が指定されなかった場合は、空の配列を返します。
//emlist[例][ruby]{
h = {1=>"a", 2=>"b", 3=>"c"}
p h.values_at(1,3,4) #=> ["a", "c", nil]
# [h[1], h[3] ,h[4]] と同じ
//}
@see Hash#... -
REXML
:: Parent # unshift(object) -> () (27304.0) -
object を子ノード列の最初に追加します。
object を子ノード列の最初に追加します。
object の親ノードには self が設定されます。
@param object 追加するノード -
REXML
:: Parsers :: PullParser # unshift(token) -> () (27304.0) -
イベントキューの先頭に token を追加します。
イベントキューの先頭に token を追加します。
@param token 先頭に追加するイベント(REXML::Parsers::PullEvent オブジェクト) -
RSS
:: XMLStyleSheet # alternate (27304.0) -
@todo
@todo -
RSS
:: XMLStyleSheet # alternate= (27304.0) -
@todo
@todo -
RSS
:: XMLStyleSheet # title (27304.0) -
@todo
@todo -
RSS
:: XMLStyleSheet # title= (27304.0) -
@todo
@todo -
Rational
# hash -> Integer (27304.0) -
自身のハッシュ値を返します。
自身のハッシュ値を返します。
@return ハッシュ値を返します。
@see Object#hash -
Resolv
:: DNS :: Resource :: SOA # refresh -> Integer (27304.0) -
プライマリサーバからの更新をセカンダリサーバがチェックする 頻度を秒単位で返します。
プライマリサーバからの更新をセカンダリサーバがチェックする
頻度を秒単位で返します。 -
Shell
# blockdev?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev? -
Shell
# identical? (27304.0) -
@todo
@todo -
Shell
# link(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link -
Shell
# lstat(filename) -> File :: Stat (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat -
Shell
# readlink(path) -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink -
Shell
# split(pathname) -> [String] (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split -
Shell
# symlink(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink -
Shell
# symlink?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink? -
Shell
# unlink(path) -> self (27304.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink -
Shell
# world _ readable? (27304.0) -
@todo
@todo -
Shell
# world _ writable? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # blockdev?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev? -
Shell
:: CommandProcessor # identical? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # link(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link -
Shell
:: CommandProcessor # lstat(filename) -> File :: Stat (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat -
Shell
:: CommandProcessor # readlink(path) -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink -
Shell
:: CommandProcessor # split(pathname) -> [String] (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split -
Shell
:: CommandProcessor # symlink(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink -
Shell
:: CommandProcessor # symlink?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink? -
Shell
:: CommandProcessor # unlink(path) -> self (27304.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink -
Shell
:: CommandProcessor # world _ readable? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # world _ writable? (27304.0) -
@todo
@todo -
Shell
:: Filter # blockdev?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev? -
Shell
:: Filter # identical? (27304.0) -
@todo
@todo -
Shell
:: Filter # link(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link -
Shell
:: Filter # lstat(filename) -> File :: Stat (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat