Files
beef/core/api.rb
scotty.b.brown@gmail.com 35f62714b1 Moving nextgen from a branch to the trunk!!!
git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-04-20 07:54:56 +00:00

31 lines
565 B
Ruby

=begin
=end
module BeEF
module API
#
# Calls a API fire against a certain class / module (c) method (m) with n parameters (*args)
#
def self.fire(c, m, *args)
c.extended_in_modules.each do |mod|
begin
mod.send m.to_sym, *args
rescue Exception => e
puts e.message
puts e.backtrace
end
end
end
end
end
require 'core/api/command'
require 'core/api/extension'
require 'core/api/migration'
require 'core/api/server/handler'
require 'core/api/server/hook'