304件ヒット
[1-100件を表示]
(0.232秒)
ライブラリ
- ビルトイン (88)
- benchmark (22)
- matrix (11)
- pathname (66)
-
rubygems
/ config _ file (11) -
shell
/ command-processor (18) - tempfile (11)
-
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (11) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (22) -
webrick
/ httpauth / userdb (22)
クラス
-
Benchmark
:: Tms (22) - Complex (44)
-
Gem
:: ConfigFile (11) - Matrix (11)
- Numeric (44)
- Pathname (66)
-
Shell
:: CommandProcessor (18) - Tempfile (11)
-
WEBrick
:: HTTPAuth :: BasicAuth (11) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (22)
モジュール
キーワード
- abs (11)
- abs2 (11)
- close (11)
-
delete
_ passwd (11) -
executable
_ real? (17) - format (11)
-
get
_ passwd (33) - imag (11)
- imaginary (11)
- magnitude (11)
-
make
_ passwd (11) -
readable
_ real? (17) - real? (11)
- realdirpath (11)
-
really
_ verbose (11) - realm (22)
- realpath (22)
- rectangular (11)
-
writable
_ real? (17)
検索結果
先頭5件
-
Numeric
# real -> Numeric (27332.0) -
自身を返します。
...す。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.real # => 10
-10.real # => -10
0.1.real # => 0.1
Rational(2, 3).real # => (2/3)
//}
@see Numeric#imag、Complex#real... -
Benchmark
:: Tms # real -> Float (27202.0) -
実経過時間。
実経過時間。 -
Complex
# real -> Numeric (24308.0) -
自身の実部を返します。
...自身の実部を返します。
//emlist[例][ruby]{
Complex(3, 2).real # => 3
//}... -
Pathname
# realdirpath(basedir = nil) -> Pathname (18301.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathnam......"
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... -
Pathname
# realpath -> Pathname (18301.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param ba......uire '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 (18301.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param ba......uire '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... -
WEBrick
:: HTTPAuth :: Authenticator # realm -> String (18301.0) -
レルムを返します。
レルムを返します。 -
WEBrick
:: HTTPAuth :: BasicAuth # realm -> String (15301.0) -
realm を文字列で返します。
...
realm を文字列で返します。... -
Numeric
# real? -> bool (15232.0) -
常に true を返します。(Complex またはそのサブクラスではないことを意味します。)
...ます。)
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.real? # => true
-10.real? # => true
0.1.real? # => true
Rational(2, 3).real? # => true
//}
@see Numeric#integer?、......Complex#real?... -
Pathname
# executable _ real? -> bool (15224.0) -
FileTest.executable_real?(self.to_s) と同じです。
...FileTest.executable_real?(self.to_s) と同じです。
@see FileTest.#executable_real?...