# File lib/gem_plugin.rb, line 156
156:     def create(name, options = {})
157:       last_slash = name.rindex("/")
158:       category = name[0 ... last_slash]
159:       plugin = name[last_slash .. -1]
160: 
161:       map = @plugins[category]
162:       if not map
163:         raise "Plugin category #{category} does not exist"
164:       elsif not map.has_key? plugin
165:         raise "Plugin #{plugin} does not exist in category #{category}"
166:       else
167:         map[plugin].new(options)
168:       end
169:     end