226件ヒット
[1-100件を表示]
(0.138秒)
種類
- 文書 (88)
- モジュール関数 (61)
- インスタンスメソッド (33)
- ライブラリ (22)
- 特異メソッド (22)
ライブラリ
- ビルトイン (33)
- fileutils (72)
-
rake
/ packagetask (11)
クラス
- BasicObject (11)
- Module (11)
- Object (11)
-
Rake
:: PackageTask (11)
モジュール
- FileUtils (72)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) - Ruby用語集 (11)
-
cp
_ lr (6) -
cp
_ r (11) - new (11)
-
remove
_ class _ variable (11) -
remove
_ entry (11) -
remove
_ instance _ variable (11) - rm (11)
-
rm
_ r (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / uninstall _ command (11) -
rubygems
/ security (11) -
singleton
_ method _ removed (11)
検索結果
先頭5件
-
FileUtils
. # remove(list , options = {}) -> () (24207.0) -
list で指定された対象を消去します。
...list で指定された対象を消去します。
@param list 削除する対象。一つの場合は文字列も指定可能です。
二つ以上指定する場合は配列で指定します。
@param options :force, :noop, :verbose が指定できます。
c:FileUtil......s#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm('junk.txt')
FileUtils.rm(Dir.glob('*~'))
FileUtils.rm('NotExistFile', force: true) # never raises exception
//}... -
Object
# remove _ instance _ variable(name) -> object (12231.0) -
オブジェクトからインスタンス変数 name を取り除き、そのインス タンス変数に設定されていた値を返します。
...ます。
@raise NameError オブジェクトがインスタンス変数 name を持たない場合に発生します。
//emlist[][ruby]{
class Foo
def foo
@foo = 1
p remove_instance_variable(:@foo) #=> 1
p remove_instance_variable(:@foo) # instance variable @foo not defined (NameErr......or)
end
end
Foo.new.foo
//}
@see Module#remove_class_variable,Module#remove_const... -
BasicObject
# singleton _ method _ removed(name) -> object (12228.0) -
特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。
...odule#remove_method に
より削除された時にインタプリタから呼び出されます。
通常のメソッドの削除に対するフックには
Module#method_removedを使います。
@param name 削除されたメソッド名が Symbol で渡されます。
//emlist[例][ruby]{
cla......o
def singleton_method_removed(name)
puts "singleton method \"#{name}\" was removed"
end
end
obj = Foo.new
def obj.foo
end
class << obj
remove_method :foo
end
#=> singleton method "foo" was removed
//}
@see Module#method_removed,BasicObject#singleton_method_added,BasicObject#singleton_......method_undefined... -
Module
# remove _ class _ variable(name) -> object (12225.0) -
引数で指定したクラス変数を取り除き、そのクラス変数に設定さ れていた値を返します。
...String または Symbol を指定します。
@return 引数で指定されたクラス変数に設定されていた値を返します。
@raise NameError 引数で指定されたクラス変数がそのモジュールやクラスに定義されていない場合に発生します。
//emlist[......例][ruby]{
class Foo
@@foo = 1
remove_class_variable(:@@foo) # => 1
p @@foo # => uninitialized class variable @@foo in Foo (NameError)
end
//}
@see Module#remove_const, Object#remove_instance_variable... -
FileUtils
. # remove _ entry(path , force = false) -> () (12131.0) -
ファイル path を削除します。path がディレクトリなら再帰的に削除します。
...FileUtils.#remove_entry_secure の項を参照してください。
@param path 削除するパス。
@param force 真のときは削除中に発生した StandardError を無視します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.remove_entry '/tmp/ruby.tmp.08883'
//}
@see FileUtils.#r... -
rubygems
/ security (12072.0) -
このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
...このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。
=== 署名付きの Gem パッケージ
==== 目次
* 概要
* 解説
* コマンドラインオプション
* OpenSSL リファレンス
* Bugs / TODO
* 作者について
==== 概......とそれらを作成することができます。
# gemmaster@example.com のための秘密鍵と証明書を作成します
$ gem cert --build gemmaster@example.com
あなたのコンピュータの性能にもよりますが、これには 5 秒から 10 分程度かかります。
(公......。
Usage: gem cert [options]
Options:
-a, --add CERT 信頼する証明書を追加します。
-l, --list 信頼している証明書のリストを表示します。
-r, --remove STRING STRING を含む証明書を削... -
rubygems
/ commands / uninstall _ command (12030.0) -
Gem パッケージをアンインストールするためのライブラリです。
...uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --[no-]executables Uninstall applica......ble executables without
confirmation
-i, --install-dir DIR Directory to uninstall gem from
-n, --bindir DIR Directory to remove binaries from
-v, --version VERSION Specify version of gem to uninstall
--pla......す
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッ... -
FileUtils
. options -> Array (9112.0) -
オプション名の配列を返します。
...オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["verbose", "mode", "noop", "parents", "force", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}......オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}... -
FileUtils
. # rm(list , options = {}) -> () (9107.0) -
list で指定された対象を消去します。
...list で指定された対象を消去します。
@param list 削除する対象。一つの場合は文字列も指定可能です。
二つ以上指定する場合は配列で指定します。
@param options :force, :noop, :verbose が指定できます。
c:FileUtil......s#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm('junk.txt')
FileUtils.rm(Dir.glob('*~'))
FileUtils.rm('NotExistFile', force: true) # never raises exception
//}... -
FileUtils
. # cp _ lr(src , dest , noop: nil , verbose: nil , dereference _ root: true , remove _ destination: false) (6355.0) -
src へのハードリンク dest を作成します。 src がディレクトリの場合、再帰的にリンクします。 dest がディレクトリの場合、src へのハードリンク dest/src を作成します。
...かディレクトリです。
@param options :noop, :verbose, :dereference_root, :remove_destination が指定できます。
c:FileUtils#options
@raise ArgumentError dest が src に含まれる場合に発生します。
@raise Errno::EEXIST src が一つで dest がすでに存......raise Errno::ENOTDIR src が複数で dest がディレクトリでない場合に発生します。
//emlist["mylib" ライブラリを site_ruby にインストールする例][ruby]{
require 'fileutils'
FileUtils.rm_r site_ruby + '/mylib', force: true
FileUtils.cp_lr 'lib/', site_ruby + '/mylib'......ist[様々なファイルを対象ディレクトリにリンクする例][ruby]{
require 'fileutils'
FileUtils.cp_lr %w(mail.rb field.rb debug/), site_ruby + '/tmail'
FileUtils.cp_lr Dir.glob('*.rb'), '/home/aamine/lib/ruby', noop: true, verbose: true
//}
//emlist[内容をリンクする例][ruby...