Created
April 19, 2012 02:00
-
-
Save banister/2417846 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[5] (pry) main / Gem: 1> find-method -c 'index' | |
Gem::SourceIndex.from_gems_in: source_index = new | |
source_index.spec_dirs = spec_dirs | |
source_index.refresh! | |
Enumerable | |
Enumerable#find_index: enum_find_index(int argc, VALUE *argv, VALUE obj) | |
VALUE memo[3]; /* [return value, current index, condition value] */ | |
func = find_index_iter_i; | |
func = find_index_i; | |
Enumerable#each_with_index: enum_each_with_index(int argc, VALUE *argv, VALUE obj) | |
rb_block_call(obj, id_each, argc, argv, each_with_index_i, (VALUE)&memo); | |
Enumerator | |
Enumerator#each_with_index: enumerator_each_with_index(VALUE obj) | |
return enumerator_with_index(0, NULL, obj); | |
Enumerator#with_index: enumerator_with_index(int argc, VALUE *argv, VALUE obj) | |
return enumerator_block_call(obj, enumerator_with_index_i, (VALUE)&memo); | |
Gem | |
Gem.clear_paths: @@source_index = nil | |
Gem.load_path_insert_index: def self.load_path_insert_index | |
index = $LOAD_PATH.index ConfigMap[:sitelibdir] | |
$LOAD_PATH.each_with_index do |path, i| | |
if path.instance_variables.include?(:@gem_prelude_index) or | |
path.instance_variables.include?('@gem_prelude_index') then | |
index = i | |
index | |
Gem.refresh: @source_index = nil | |
Gem.source_index: def self.source_index | |
@@source_index ||= SourceIndex.from_installed_gems | |
Gem._deprecated_cache: source_index | |
Gem._deprecated_promote_load_path: gem = $LOAD_PATH.index(last_gem_path) + 1 | |
Gem._deprecated_source_index: def self.source_index | |
@@source_index ||= Gem::Deprecate.skip_during do | |
Gem::Installer | |
Gem::Installer#process_options: raise "NOTE: Installer option :source_index is dead" if | |
options[:source_index] | |
Gem::SourceIndex | |
Gem::SourceIndex#index_signature: def index_signature | |
Gem::SourceIndex#refresh!: raise 'source index not created from disk' if @spec_dirs.nil? | |
Gem::SourceIndex#_deprecated_refresh!: raise 'source index not created from disk' if @spec_dirs.nil? | |
Gem::SourceIndex#_deprecated_index_signature: def index_signature | |
Gem::Specification | |
Gem::Specification#add_self_to_load_path: insert_index = Gem.load_path_insert_index | |
if insert_index then | |
$LOAD_PATH.insert(insert_index, *paths) | |
Gem::Specification#lib_files: file.index(path) == 0 | |
Gem::StreamUI | |
Gem::StreamUI#choose_from_list: list.each_with_index do |item, index| | |
@outs.puts " #{index+1}. #{item}" | |
[6] (pry) main / Gem: 1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment