るりまサーチ

最速Rubyリファレンスマニュアル検索!
113件ヒット [101-113件を表示] (0.027秒)
トップページ > クエリ:new[x] > クエリ:mkdir[x]

別のキーワード

  1. openssl new
  2. _builtin new
  3. rexml/document new
  4. resolv new
  5. socket new

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

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#...
<< < 1 2 >>