328件ヒット
[1-100件を表示]
(0.196秒)
ライブラリ
- ビルトイン (55)
- benchmark (22)
- matrix (44)
- pathname (66)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (18) - tempfile (11)
-
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (11) -
webrick
/ httpauth / htdigest (22) -
webrick
/ httpauth / htpasswd (22) -
webrick
/ httpauth / userdb (22)
クラス
-
Benchmark
:: Tms (22) - Complex (11)
-
File
:: Stat (33) - Matrix (44)
- Numeric (11)
- Pathname (66)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (18) - Tempfile (11)
-
WEBrick
:: HTTPAuth :: BasicAuth (11) -
WEBrick
:: HTTPAuth :: Htdigest (22) -
WEBrick
:: HTTPAuth :: Htpasswd (22)
モジュール
キーワード
- close (11)
-
delete
_ passwd (11) - each (11)
-
executable
_ real? (40) - format (11)
-
get
_ passwd (33) - integer? (11)
- magnitude (11)
-
make
_ passwd (11) -
readable
_ real? (28) - real? (11)
- realdirpath (11)
- realm (22)
- realpath (22)
- rect (11)
- rectangular (11)
-
writable
_ real? (40)
検索結果
先頭5件
-
Matrix
# real -> Matrix (21308.0) -
行列の実部を返します。
...行列の実部を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
# => 1+2i i 0
# 1 2 3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].real
# => 1 0 0
# 1 2 3
//}... -
Benchmark
:: Tms # real -> Float (21302.0) -
実経過時間。
実経過時間。 -
Pathname
# realpath -> Pathname (15419.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生しま......emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")......p path.realpath
# => ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# realpath(basedir = nil) -> Pathname (15419.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生しま......emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")......p path.realpath
# => ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
Pathname
# realdirpath(basedir = nil) -> Pathname (15401.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT
//......}
@see Pathname#realpath... -
File
:: Stat # executable _ real? -> bool (15308.0) -
実ユーザ/グループIDで実行できる時に真を返します。
...実ユーザ/グループIDで実行できる時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).executable_real?
#例
#=> true
//}... -
File
:: Stat # writable _ real? -> bool (15308.0) -
実ユーザ/実グループによって書き込み可能な時に真を返します。
...実ユーザ/実グループによって書き込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).writable_real? #=> true
//}... -
Pathname
# executable _ real? -> bool (12324.0) -
FileTest.executable_real?(self.to_s) と同じです。
...FileTest.executable_real?(self.to_s) と同じです。
@see FileTest.#executable_real?... -
Pathname
# writable _ real? -> bool (12324.0) -
FileTest.writable_real?(self.to_s) と同じです。
...FileTest.writable_real?(self.to_s) と同じです。
@see FileTest.#writable_real?... -
Shell
# executable _ real?(file) -> bool (12308.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real?...