orbit4-5/lib/orbit_app/register_module.rb

14 lines
464 B
Ruby

#This module will initialize the registration process for a ModuleApp
module OrbitApp
module RegisterModule
def registration(name,type ={:type=> "ModuleApp"} ,&block)
if type[:type].eql?("ModuleApp")
Module::Registration.new(name,&block)
elsif type[:type] == "PersonalPlugin"
Plugin::Registration.new(name,&block)
elsif type[:type] == "OrbitWidget"
Widget::Registration.new(name,&block)
end
end
end
end