Sha256: 0d85df9cc8e0bffeb44dfa408eea081880d951c049de9865aa2c621710d829ac
Contents?: true
Size: 1.54 KB
Versions: 40
Compression:
Stored size: 1.54 KB
Contents
o:$YARD::CodeObjects::MethodObject:@parameters[ : @name: load_all:@files[["plugin.rbi:@current_file_has_commentsF: @tags[ :@source"+def self.load_all plugins = [] Find.find(File.expand_path(File.join(File.dirname(__FILE__),"..","/plugins/"))) do |a| plugins << File.expand_path(a) end orig = Pago.constants plugins.each do |p| require p if p.include?(".rb") if p.include?(".yml") YAML.load_file(p).each{ |k,v| Pago::Site[k.to_s] = v } rescue puts "Warning! Skipping #{p}" end end added = Pago.constants - orig added.each{|d| c = Pago.const_get(d) Pago::Plugins << c if c.respond_to?(:is_a_pago_plugin) } Pago::Plugins end:@namespaceu:YARD::StubProxyPago::Plugin:@explicitT:@visibility:public:@docstringIC:YARD::Docstring"