forked from saurabh/orbit4-5
14 lines
464 B
Ruby
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 |