Module: IrbPlugin
- Defined in:
- lib/irb_plugin.rb,
lib/irb_plugin/version.rb
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Class Method Details
.load_all_plugins ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/irb_plugin.rb', line 5 def self.load_all_plugins dependent_gems = Gem.source_index.select do |_, gemspec| gemspec.dependencies.any?{|dependency| dependency.name == "irb_plugin"} end.map do |name, gemspec| begin require "#{gemspec.name}/irb_plugin" name rescue LoadError end end.compact end |