2261件ヒット
[201-300件を表示]
(0.111秒)
ライブラリ
- ビルトイン (814)
- abbrev (11)
- benchmark (55)
- bigdecimal (22)
-
bigdecimal
/ math (66) - cmath (240)
- digest (11)
- drb (22)
- erb (33)
- fiddle (11)
- fileutils (143)
- json (44)
- mathn (8)
- objspace (44)
- open3 (154)
- openssl (66)
- readline (11)
- rubygems (55)
- shellwords (44)
-
webrick
/ accesslog (11) -
webrick
/ htmlutils (11) -
webrick
/ httpauth (22) -
webrick
/ httpstatus (77) -
webrick
/ httputils (121) -
win32
/ registry (132) -
win32
/ resolv (11) - zlib (22)
クラス
-
Win32
:: Resolv (11)
モジュール
- Abbrev (11)
- Benchmark (55)
- BigMath (88)
- CMath (240)
- DRb (22)
- Digest (11)
-
ERB
:: DefMethod (11) -
ERB
:: Util (22) - Fiddle (11)
- FileTest (33)
- FileUtils (143)
- Gem (55)
- JSON (44)
- Kernel (209)
- Marshal (44)
- Math (305)
- ObjectSpace (99)
- Open3 (154)
-
OpenSSL
:: ASN1 (33) -
OpenSSL
:: PKCS5 (22) -
OpenSSL
:: Random (11) - Process (55)
-
Process
:: GID (55) -
Process
:: UID (55) - Readline (11)
- Shellwords (44)
- Signal (11)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: HTMLUtils (11) -
WEBrick
:: HTTPAuth (22) -
WEBrick
:: HTTPStatus (77) -
WEBrick
:: HTTPUtils (121) -
Win32
:: Registry :: API (132) - Zlib (22)
キーワード
- CloseKey (11)
- CreateKey (11)
- DeleteKey (11)
- DeleteValue (11)
- E (11)
- EnumKey (11)
- EnumValue (11)
- FlushKey (11)
- GraphicString (22)
- Hash (11)
- OpenKey (11)
- PI (11)
- QueryInfoKey (11)
- QueryValue (11)
- SetValue (11)
-
_ _ method _ _ (11) - abbrev (11)
- acos (17)
- acos! (6)
- acosh (17)
- acosh! (6)
-
adler32
_ combine (11) - asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
- atan (28)
- atan! (6)
- atan2 (17)
- atan2! (6)
- atanh (17)
- atanh! (6)
-
basic
_ auth (11) - benchmark (11)
- bm (11)
- bmbm (11)
- caller (11)
-
caller
_ locations (22) - catch (22)
- cbrt (17)
- cbrt! (6)
-
change
_ privilege (22) - chardev? (11)
- chdir (22)
- check (11)
- chmod (11)
-
chmod
_ R (11) - chomp (11)
- chop (11)
- chown (11)
-
chown
_ R (11) -
clear
_ paths (11) -
client
_ error? (11) -
clock
_ gettime (11) - cos (28)
- cos! (6)
- cosh (17)
- cosh! (6)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) -
crc32
_ combine (11) - daemon (11)
-
def
_ erb _ method (11) - dequote (11)
- detach (11)
- dlopen (11)
- dump (22)
-
each
_ object (44) -
egd
_ bytes (11) - erf (11)
- erfc (11)
- error? (11)
- escape (22)
- escape8bit (11)
-
escape
_ path (11) - exp (28)
- exp! (6)
- format (11)
- frexp (11)
- gamma (11)
- generate (11)
-
get
_ hosts _ path (11) - getpriority (11)
- gsub (11)
- here? (11)
- hexencode (11)
-
html
_ escape (11) - hypot (11)
- info? (11)
- ldexp (11)
- lgamma (11)
- list (11)
- load (11)
-
load
_ mime _ types (11) - log (45)
- log! (12)
- log10 (17)
- log10! (6)
- log2 (17)
- log2! (6)
-
marshal
_ version (11) - measure (11)
-
mime
_ type (11) - mkpath (11)
-
parse
_ header (11) -
parse
_ range _ header (11) - path (11)
-
pbkdf2
_ hmac (11) -
pbkdf2
_ hmac _ sha1 (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) -
proxy
_ basic _ auth (11) - putc (11)
- quote (11)
-
re
_ exchange (22) -
re
_ exchangeable? (22) -
reachable
_ objects _ from (11) - readline (11)
- realtime (11)
-
reason
_ phrase (11) - redirect? (11)
-
remove
_ dir (11) -
remove
_ entry (11) -
remove
_ entry _ secure (11) -
remove
_ file (11) - restore (11)
- rsqrt (4)
-
server
_ error? (11) -
set
_ home (11) -
set
_ paths (11) - setpriority (11)
-
setup
_ params (11) - shellescape (11)
- shelljoin (11)
- shellsplit (11)
- shellwords (11)
- sin (28)
- sin! (6)
- sinh (17)
- sinh! (6)
-
split
_ header _ value (11) - sprintf (11)
- sqrt (32)
- sqrt! (6)
- sub (11)
- success? (11)
- switch (44)
- syscall (11)
- tan (17)
- tan! (6)
- tanh (17)
- tanh! (6)
- thread (11)
- throw (11)
- touch (11)
-
trace
_ var (22) - traverse (11)
- unescape (11)
- unparse (11)
-
untrace
_ var (11) - uptodate? (11)
-
world
_ readable? (11) -
world
_ writable? (11)
検索結果
先頭5件
-
CMath
. # tanh(z) -> Float | Complex (6101.0) -
z の双曲線正接関数の値を返します。
z の双曲線正接関数の値を返します。
@param z 数値
@raise TypeError z に数値以外を指定した場合に発生します。 -
DRb
. # here?(uri) -> bool (6101.0) -
uri がカレントサーバに紐付けられたものであれば真を返します。
uri がカレントサーバに紐付けられたものであれば真を返します。
@see DRb.#current_server -
Digest
. # hexencode(string) -> String (6101.0) -
引数である文字列 string を、16進数に変換した文字列を生成して返します。
...require 'digest'
p Digest.hexencode("") # => ""
p Digest.hexencode("d") # => "64"
p Digest.hexencode("\1\2") # => "0102"
p Digest.hexencode("\xB0") # => "b0"
p digest = Digest::MD5.digest("ruby") # => "X\xE5=\x13$\xEE\xF6&_\xDB\x97\xB0\x8E\xD9\xAA\xDF"
p Digest.hexencode(digest)......D5.hexdigest("ruby") # => "58e53d1324eef6265fdb97b08ed9aadf"
p digest = Digest::SHA1.digest("ruby") # => "\x18\xE4\x0E\x14\x01\xEE\xF6~\x1A\xE6\x9E\xFA\xB0\x9A\xFBq\xF8\x7F\xFB\x81"
p Digest.hexencode(digest) # => "18e40e1401eef67e1ae69efab09afb71f87ffb81"
p Digest::SHA1.hex......digest("ruby") # => "18e40e1401eef67e1ae69efab09afb71f87ffb81"
//}
文字列から16進数に変換したハッシュ値を直接得たい場合は、Digest::Base.hexdigest を使うこともできます。
@see Digest::Base.hexdigest, Digest::Base#hexdigest... -
FileTest
. # chardev?(file) -> bool (6101.0) -
ファイルがキャラクタスペシャルファイルの時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
Dir.glob("/dev/*") { |file|
puts file if FileTest.chardev?(file)
}
# /dev/console
# /dev/tty
# ...... -
FileUtils
. # chmod(mode , list , options = {}) -> Array (6101.0) -
ファイル list のパーミッションを mode に変更します。
...ls.chmod(0644, %w(my.rb your.rb his.rb her.rb))
FileUtils.chmod(0755, 'somecommand')
FileUtils.chmod(0755, '/usr/bin/ruby', verbose: true)
# Symbolic mode
require 'fileutils'
FileUtils.chmod("u=wr,go=rr", %w(my.rb your.rb his.rb her.rb))
FileUtils.chmod("u=wrx,go=rx", 'somecommand')
FileUtils.chmod(... -
FileUtils
. # chmod _ R(mode , list , options = {}) -> Array (6101.0) -
ファイル list のパーミッションを再帰的に mode へ変更します。
...変更します。
@param mode パーミッションを8進数(absolute mode)か文字列(symbolic
mode)で指定します(FileUtils.#chmod 参照)。
@param list ファイルのリストを指定します。対象のファイルが一つの場合は文字列でも指定可能です。......二つ以上指定する場合は配列で指定します。
@param options :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chmod_R(0700, '/tmp/removing')
//}... -
FileUtils
. # chown(user , group , list , options = {}) -> Array (6101.0) -
ファイル list の所有ユーザと所有グループを user と group に変更します。
...ptions :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
//}... -
FileUtils
. # chown _ R(user , group , list , options = {}) -> Array (6101.0) -
list 以下のファイルの所有ユーザと所有グループを user と group へ再帰的に変更します。
...。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
require 'fileutils'
FileUtils.chown_R 'www', 'www', '/var/www/htdocs'
FileUtils.chown_R 'cvs', 'cvs', '/var/cvs', verbose: true
//}... -
FileUtils
. # touch(list , options = {}) -> () (6101.0) -
list で指定されたファイルの最終変更時刻 (mtime) と アクセス時刻 (atime) を変更します。
...場合は配列で指定します。
@param options :mtime, :nocreate, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.touch('timestamp')
FileUtils.touch('timestamp', mtime: Time.now)
FileUtils.touch(Dir.glob('*.c'))
//}... -
Gem
. # clear _ paths -> nil (6101.0) -
Gem.#dir, Gem.#path の値をリセットします。
...Gem.#dir, Gem.#path の値をリセットします。
次に Gem.#dir, Gem.#path が呼ばれた時は、値を最初から計算します。
このメソッドは主にユニットテストの独立性を提供するために使用します。...