ライブラリ
- ビルトイン (1752)
- abbrev (11)
- base64 (66)
- benchmark (33)
- bigdecimal (44)
-
bigdecimal
/ jacobian (11) -
bigdecimal
/ ludcmp (22) -
bigdecimal
/ math (66) -
bigdecimal
/ newton (11) - cmath (78)
- digest (11)
-
digest
/ bubblebabble (11) - drb (11)
- erb (55)
- etc (44)
- fiddle (66)
- fileutils (490)
- find (22)
- json (121)
- kconv (143)
- nkf (22)
- objspace (77)
- open-uri (16)
- open3 (198)
- openssl (528)
- profiler (6)
- pty (44)
- readline (11)
- shellwords (44)
- syslog (143)
- timeout (19)
- uri (11)
-
webrick
/ accesslog (33) -
webrick
/ htmlutils (11) -
webrick
/ httpauth (22) -
webrick
/ httpstatus (77) -
webrick
/ httputils (121) -
webrick
/ utils (55) - zlib (74)
モジュール
- Abbrev (11)
- Base64 (66)
- Benchmark (33)
- BigMath (88)
- CMath (78)
- DRb (11)
- Digest (22)
-
ERB
:: DefMethod (11) -
ERB
:: Util (44) - Etc (44)
- Fiddle (66)
- FileTest (283)
- FileUtils (490)
- Find (22)
- JSON (121)
- Jacobian (11)
- Kconv (143)
- Kernel (858)
- LUSolve (22)
- Marshal (44)
- Math (77)
- NKF (22)
- Newton (11)
- ObjectSpace (154)
- Open3 (198)
-
OpenSSL
:: ASN1 (440) -
OpenSSL
:: PKCS5 (22) -
OpenSSL
:: Random (66) - PTY (44)
- Process (253)
-
Process
:: GID (44) -
Process
:: Sys (99) -
Process
:: UID (44) -
Profiler
_ _ (6) - Readline (11)
- Shellwords (44)
- Signal (22)
- Syslog (121)
-
Syslog
:: Macros (22) - Timeout (19)
-
WEBrick
:: AccessLog (33) -
WEBrick
:: HTMLUtils (11) -
WEBrick
:: HTTPAuth (22) -
WEBrick
:: HTTPStatus (77) -
WEBrick
:: HTTPUtils (121) -
WEBrick
:: Utils (55) - Zlib (74)
キーワード
- BMPString (22)
- BigDecimal (22)
- BitString (22)
- Boolean (11)
- Complex (22)
- E (11)
- Enumerated (11)
- Float (6)
- GeneralString (22)
- GeneralizedTime (22)
- GraphicString (22)
- IA5String (22)
- ISO64String (22)
- Integer (33)
-
LOG
_ MASK (11) -
LOG
_ UPTO (11) - Null (11)
- NumericString (22)
- ObjectId (22)
- OctetString (22)
- PI (11)
- PrintableString (22)
- Rational (11)
- Sequence (11)
- Set (11)
- String (11)
- T61String (22)
- URI (11)
- UTCTime (22)
- UTF8String (22)
- UniversalString (22)
- VideotexString (22)
-
_ id2ref (11) - ` (11)
- abbrev (11)
- adler32 (15)
-
adler32
_ combine (11) -
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) - asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
- atan (11)
- autoload (11)
- autoload? (11)
-
basic
_ auth (11) - benchmark (11)
- blockdev? (11)
- bm (11)
- bmbm (11)
- bubblebabble (11)
- caller (33)
-
caller
_ locations (22) - capture2 (11)
- capture2e (11)
- capture3 (11)
- catch (22)
- cbrt (6)
- cd (22)
-
change
_ privilege (22) - chardev? (11)
- chdir (22)
- chmod (11)
-
chmod
_ R (11) - chomp (11)
- chown (11)
-
chown
_ R (11) -
client
_ error? (11) -
clock
_ gettime (11) - cmp (11)
-
compare
_ file (11) -
compare
_ stream (11) - confstr (11)
- copy (11)
-
copy
_ entry (11) -
copy
_ file (11) -
copy
_ stream (11) - cos (11)
-
count
_ nodes (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - cp (11)
-
cp
_ lr (6) -
cp
_ r (11) - crc32 (15)
-
crc32
_ combine (11) -
create
_ listeners (11) - crit (11)
- daemon (11)
- decode64 (11)
-
def
_ erb _ method (11) -
define
_ finalizer (22) - deflate (11)
- dequote (11)
- detach (11)
- directory? (11)
- dlopen (11)
- dlunwrap (11)
- dlwrap (11)
- dump (33)
-
each
_ object (22) - egd (11)
-
egd
_ bytes (11) - egid= (11)
- eid= (22)
- empty? (8)
- encode64 (11)
- error? (11)
- escape (33)
- escape8bit (11)
-
escape
_ path (11) - euid= (11)
- eval (11)
- exec (44)
- executable? (11)
-
executable
_ real? (11) - exist? (11)
- exit (11)
- exit! (11)
- exp (17)
- fail (33)
-
fast
_ generate (11) -
fast
_ unparse (11) - file? (11)
- find (22)
- format (22)
- free (11)
- frexp (11)
-
from
_ name (22) - gamma (11)
-
garbage
_ collect (11) - generate (11)
- getgrgid (11)
- getpgid (11)
- getpriority (11)
- getpty (22)
- getpwuid (11)
- getrlimit (11)
- gets (11)
- getsid (11)
- gid= (11)
-
grant
_ privilege (22) - groups= (11)
- grpowned? (11)
- gsub (22)
- guess (22)
- h (11)
- hexencode (11)
-
html
_ escape (11) - identical? (22)
- inflate (11)
- info (11)
- info? (11)
- initgroups (11)
- install (11)
- iseuc (11)
- isjis (11)
- issjis (11)
- isutf8 (11)
- jacobian (11)
- kconv (11)
- kill (11)
- lgamma (11)
- link (11)
- ln (11)
-
ln
_ s (11) -
ln
_ sf (11) - load (33)
-
load
_ mime _ types (11) -
load
_ random _ file (11) - log (34)
- ludecomp (11)
- lusolve (11)
- makedirs (11)
- malloc (11)
- mask (11)
- mask= (11)
- maxgroups (11)
-
memsize
_ of (11) -
memsize
_ of _ all (11) -
mime
_ type (11) - mkdir (11)
-
mkdir
_ p (11) - mkpath (11)
- move (11)
- mv (11)
- nkf (11)
- nlsolve (11)
- notice (11)
- open (60)
- open! (11)
- owned? (11)
- parse (11)
- parse! (11)
-
parse
_ header (11) -
parse
_ range _ header (11) -
pbkdf2
_ hmac (11) -
pbkdf2
_ hmac _ sha1 (11) - pipe? (11)
- pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - popen2 (22)
- popen2e (22)
- popen3 (22)
-
pretty
_ generate (11) -
pretty
_ unparse (11) - print (11)
-
print
_ profile (6) - printf (22)
-
proxy
_ basic _ auth (11) -
pseudo
_ bytes (11) - puts (11)
- quote (11)
- raise (33)
- rand (22)
-
random
_ bytes (11) -
random
_ string (11) - readable? (11)
-
readable
_ real? (11) - readline (22)
- readlines (11)
- realloc (11)
-
reason
_ phrase (11) - redirect? (11)
- remove (11)
-
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) - reopen (11)
- require (11)
-
require
_ relative (11) - restore (22)
- rm (11)
-
rm
_ f (11) -
rm
_ r (11) -
rm
_ rf (11) - rmdir (11)
- rmtree (11)
-
safe
_ unlink (11) - select (11)
-
server
_ error? (11) -
set
_ close _ on _ exec (11) -
set
_ non _ blocking (11) - setegid (11)
- seteuid (11)
- setgid (11)
- setgid? (11)
- setpgid (11)
- setpriority (11)
- setregid (11)
- setresgid (11)
- setresuid (11)
- setreuid (11)
- setrgid (11)
- setrlimit (22)
- setruid (11)
- setuid? (11)
-
setup
_ params (11) - shellescape (11)
- shelljoin (11)
- shellsplit (11)
- shellwords (11)
- sin (28)
- sin! (6)
- sinh (17)
- sinh! (6)
- size (11)
- size? (11)
- sleep (22)
- socket? (11)
- spawn (66)
-
split
_ header _ value (11) - sprintf (11)
- sqrt (17)
- srand (22)
-
start
_ service (11) - sticky? (11)
-
strict
_ decode64 (11) -
strict
_ encode64 (11) - su (11)
- sub (22)
- success? (11)
- symlink (11)
- symlink? (11)
- syscall (11)
- sysconf (11)
- system (44)
- test (22)
- throw (11)
- timeout (19)
- toeuc (11)
- tojis (11)
- tolocale (11)
- tosjis (11)
- touch (11)
- toutf16 (11)
- toutf32 (11)
- toutf8 (11)
-
trace
_ var (33) - trap (44)
- traverse (11)
- u (11)
- uid= (11)
-
undefine
_ finalizer (11) - unescape (11)
- unparse (11)
-
untrace
_ var (11) - uptodate? (11)
-
url
_ encode (11) -
urlsafe
_ decode64 (11) -
urlsafe
_ encode64 (11) - wait (11)
- wait2 (11)
- waitpid (11)
- waitpid2 (11)
- warn (11)
- warning (11)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) -
write
_ random _ file (11) - zero? (11)
検索結果
先頭5件
- OpenSSL
:: ASN1 . # PrintableString(value) -> OpenSSL :: ASN1 :: PrintableString -> OpenSSL :: ASN1 :: PrintableString - OpenSSL
:: ASN1 . # PrintableString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString - ObjectSpace
. # define _ finalizer(obj) {|id| . . . } -> Array - ObjectSpace
. # define _ finalizer(obj , proc) -> Array - Kconv
. # isjis(str) -> bool
-
OpenSSL
:: ASN1 . # PrintableString(value) -> OpenSSL :: ASN1 :: PrintableString -> OpenSSL :: ASN1 :: PrintableString (12625.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
....1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もし......くは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
OpenSSL
:: ASN1 . # PrintableString(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString (12525.0) -
ASN.1 の PrintableString 型の値を表現する Ruby のオブジェクトを 生成します。
....1 の PrintableString 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::PrintableString.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(文字列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もし......くは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
ObjectSpace
. # define _ finalizer(obj) {|id| . . . } -> Array (12213.0) -
obj が解放されるときに実行されるファイナライザ proc を 登録します。同じオブジェクトについて複数回呼ばれたときは置き換えで はなく追加登録されます。固定値 0 と proc を配列にして返します。
...obj の ID (BasicObject#__id__)を引数とし
て実行されます。
しかし、後述の問題があるのでブロックでファイナライザを登録するのは難しいでしょう。
@param obj ファイナライザを登録したいオブジェクトを指定します。
@param proc......す。proc は obj の回収時に obj の ID を引数として実行されます。
=== 使い方の注意
以下は、define_finalizer の使い方の悪い例です。
//emlist[悪い例][ruby]{
class Foo
def initialize
ObjectSpace.define_finalizer(self) {
puts "foo"
}
end
e......file は、ファイナライザの使い方の
良い例になっています。これは、クラスのコンテキストで Proc を
生成することで上記の問題を回避しています。
//emlist[例][ruby]{
class Bar
def Bar.callback
proc {
puts "bar"
}
end
def ini... -
ObjectSpace
. # define _ finalizer(obj , proc) -> Array (12213.0) -
obj が解放されるときに実行されるファイナライザ proc を 登録します。同じオブジェクトについて複数回呼ばれたときは置き換えで はなく追加登録されます。固定値 0 と proc を配列にして返します。
...obj の ID (BasicObject#__id__)を引数とし
て実行されます。
しかし、後述の問題があるのでブロックでファイナライザを登録するのは難しいでしょう。
@param obj ファイナライザを登録したいオブジェクトを指定します。
@param proc......す。proc は obj の回収時に obj の ID を引数として実行されます。
=== 使い方の注意
以下は、define_finalizer の使い方の悪い例です。
//emlist[悪い例][ruby]{
class Foo
def initialize
ObjectSpace.define_finalizer(self) {
puts "foo"
}
end
e......file は、ファイナライザの使い方の
良い例になっています。これは、クラスのコンテキストで Proc を
生成することで上記の問題を回避しています。
//emlist[例][ruby]{
class Bar
def Bar.callback
proc {
puts "bar"
}
end
def ini... -
Kconv
. # isjis(str) -> bool (12207.0) -
文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
...文字列 str が ISO-2022-JP なバイト列として正当であるかどうかを判定します。
@param str 判定対象の文字列
@see String#isjis
//emlist[例][ruby]{
require 'kconv'
euc_str = "\
\xa5\xaa\xa5\xd6\xa5\xb8\xa5\xa7\xa5\xaf\xa5\xc8\xbb\xd8\xb8\xfe\
\xa5\xd7\xa5\xed\xa5\xb0......force_encoding('EUC-JP')
jis_str = "\
\x1b\x24\x42\x25\x2a\x25\x56\x25\x38\x25\x27\x25\x2f\x25\x48\x3b\x58\x38\x7e\
\x25\x57\x25\x6d\x25\x30\x25\x69\x25\x5f\x25\x73\x25\x30\x38\x40\x38\x6c\x1b\x28\x42\
\x52\x75\x62\x79".force_encoding('ISO-2022-JP')
euc_str.isjis # => false
jis_str.isjis # => tr... -
Kconv
. # issjis(str) -> bool (12207.0) -
文字列 str が Shift_JIS なバイト列として正当であるかどうかを判定します。
...文字列 str が Shift_JIS なバイト列として正当であるかどうかを判定します。
@param str 判定対象の文字列
@see String#issjis... -
ObjectSpace
. # undefine _ finalizer(obj) -> object (12207.0) -
obj に対するファイナライザをすべて解除します。 obj を返します。
...。
obj を返します。
@param obj ファイナライザを解除したいオブジェクトを指定します。
//emlist[例][ruby]{
class Sample
def Sample.callback
proc {
puts "finalize"
}
end
def initialize
ObjectSpace.define_finalizer(self, Sample.callback)
end......def undef
ObjectSpace.undefine_finalizer(self)
end
end
Sample.new
GC.start
# => finalize
Sample.new
sample.undef
GC.start
# ※何も出力されない
//}
@see ObjectSpace.#define_finalizer... -
FileUtils
. # copy _ file(src , dest , preserve = false , dereference _ root = true) -> () (12125.0) -
ファイル src の内容を dest にコピーします。
...内容を dest にコピーします。
@param src コピー元。
@param dest コピー先。
@param preserve preserve が真のときは更新時刻と、
可能なら所有ユーザ・所有グループもコピーします。
@param dereference_root dereference_root が真の... -
FileUtils
. # remove _ file(path , force = false) -> () (12113.0) -
ファイル path を削除します。
...ファイル path を削除します。
@param path 削除するファイル。
@param force 真のときは削除中に発生した StandardError を無視します。... -
FileUtils
. # chdir(dir , options = {}) {|dir| . . . . } -> nil (9313.0) -
プロセスのカレントディレクトリを dir に変更します。
...を dir に変更します。
ブロックとともに呼び出された時はブロック終了後に
元のディレクトリに戻ります。
@param dir ディレクトリを指定します。
@param options :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby......]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}...