113件ヒット
[101-113件を表示]
(0.027秒)
種類
- インスタンスメソッド (87)
- 文書 (20)
- ライブラリ (6)
ライブラリ
- pathname (33)
- shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (18)
クラス
- Pathname (33)
- Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (18)
キーワード
-
NEWS for Ruby 2
. 5 . 0 (7) - [] (18)
- cleanpath (11)
- realpath (22)
-
ruby 1
. 6 feature (11) - shell (6)
- test (18)
- セキュリティモデル (2)
検索結果
先頭3件
-
Shell
:: Filter # [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (12.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...ます。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[... -
Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (12.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...ます。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[... -
セキュリティモデル (12.0)
-
セキュリティモデル RubyにはCGI等のプログラミングを安全に行うことを助ける為に、セキュリティ 機構が備わっています。
...$SAFEの値は0
* 各スレッドは作られた時点での親スレッドの$SAFEの値を引き継ぐ
//emlist[][ruby]{
$SAFE = 0
th = Thread.new{
p $SAFE # => 0
$SAFE = 1
}
th.join
p $SAFE # => 0
//}
* $SAFE の値を現在の値より小さく変更する事はできない
//emlist{......ル1と同様
===== 禁止される操作
レベル1の制限に加え、以下の操作が禁止されます。
* Dir.chdir Dir.chroot Dir.mkdir Dir.rmdir
* File.chown File.chmod File.umask File.truncate
File#lstat File#chmod File#chown File.delete File.unlink
File#truncate File#...