Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > rubygems/config_fileライブラリ > Gem::ConfigFileクラス
クラスの継承リスト: Gem::ConfigFile < Object < Kernel < BasicObject
設定ファイルに書かれている gem コマンドのオプションを オブジェクトに保存するためのクラスです。
このクラスのインスタンスはハッシュのように振る舞います。
定義 | 説明 | |
---|---|---|
self[key] -> object
|
引数で与えられたキーに対応する設定情報を返します。 |
|
self[key] = value
|
引数で与えられたキーに対応する設定情報を自身に保存します。 |
|
args -> Array
|
設定ファイルオブジェクトに与えられたコマンドライン引数のリストを返します。 |
|
backtrace -> bool
|
エラー発生時にバックトレースを出力するかどうかを返します。 |
|
backtrace=(backtrace)
|
エラー発生時にバックトレースを出力するかどうか設定します。 |
|
benchmark -> bool
|
真の場合はベンチマークを実行します。 |
|
benchmark=(benchmark)
|
ベンチマークを実行するかどうか設定します。 |
|
bulk_threshold -> Integer
|
Bulk threshold value. If the number of missing gems are above this threshold value, then a bulk download technique is used. |
|
bulk_threshold=(bulk_threshold)
|
Bulk threshold value. If the number of missing gems are above this threshold value, then a bulk download technique is used. |
|
config_file_name -> String
|
設定ファイルの名前を返します。 |
|
each {|key, value| ... }
|
設定ファイルの各項目のキーと値をブロック引数として与えられたブロックを評価します。 |
|
handle_arguments(arg_list)
|
コマンドに渡された引数を処理します。 |
|
hash -> Hash
|
||
load_file(file_name) -> object
|
与えられたファイル名のファイルが存在すれば YAML ファイルとしてロードします。 |
|
path -> String
|
Gem を探索するパスを返します。 |
|
path=(path)
|
Gem を探索するパスをセットします。 |
|
really_verbose -> bool
|
このメソッドの返り値が真の場合は verbose モードよりも多くの情報を表示します。 |
|
update_sources -> bool
|
真の場合は Gem::SourceInfoCache を毎回更新します。 そうでない場合は、キャッシュがあればキャッシュの情報を使用します。 |
|
update_sources=(update_sources)
|
@param update_sources 真を指定すると毎回 Gem::SourceInfoCache を更新します。 |
|
verbose -> bool | Symbol
|
ログの出力レベルを返します。 |
|
verbose=(verbose_level)
|
ログの出力レベルをセットします。 |
|
write
|
自身を読み込んだ設定ファイルを書き換えます。 |
定義 | 説明 | |
---|---|---|
DEFAULT_BACKTRACE -> false
|
デフォルトでバックトレースが表示されるかどうか |
|
DEFAULT_BENCHMARK -> false
|
||
DEFAULT_BULK_THRESHOLD -> 1000
|
||
DEFAULT_UPDATE_SOURCES -> true
|
||
DEFAULT_VERBOSITY -> true
|
||
OPERATING_SYSTEM_DEFAULTS -> {}
|
Ruby をパッケージングしている人がデフォルトの設定値をセットするために使用します。 |
|
PLATFORM_DEFAULTS -> {}
|
Ruby の実装者がデフォルトの設定値をセットするために使用します。 |
|
SYSTEM_WIDE_CONFIG_FILE -> String
|
!
!=
==
===
=~
__id__
__send__
_dump
class
clone
dclone
display
enum_for
eql?
equal?
extend
freeze
frozen?
initialize
initialize_copy
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
marshal_dump
marshal_load
method
method_missing
methods
must_be
must_be_close_to
must_be_empty
must_be_instance_of
must_be_kind_of
must_be_nil
must_be_same_as
must_be_within_epsilon
must_equal
must_include
must_match
must_raise
must_respond_to
must_send
must_throw
nil?
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
public_methods
remove_instance_variable
respond_to?
respond_to_missing?
singleton_class
singleton_method_added
singleton_method_removed
singleton_method_undefined
singleton_methods
taint
tainted?
tap
to_a
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_s
to_str
to_yaml
to_yaml_properties
to_yaml_style
trust
untaint
untrust
untrusted?
wont_be
wont_be_close_to
wont_be_empty
wont_be_instance_of
wont_be_kind_of
wont_be_nil
wont_be_same_as
wont_be_within_epsilon
wont_equal
wont_include
wont_match
wont_respond_to
.new