class Vizkit::PluginAccessor

Attributes

plugin_specs[RW]

Public Class Methods

new(namespace) click to toggle source
# File lib/vizkit/plugin_accessor.rb, line 51
def initialize(namespace)
    @namespace = namespace
    @plugin_specs = Hash.new
end

Public Instance Methods

method_missing(*args, &block) click to toggle source
# File lib/vizkit/plugin_accessor.rb, line 55
def method_missing(*args, &block)
    begin
        super
    rescue  NoMethodError => e
        Vizkit.error "#{args.first} is not plugin of the ui loader"
        Vizkit.error "The following plugins are registered under the namespace #{@namespace}"
        names = available_plugins.sort
        Vizkit.error names.join(", ")
        Kernel.raise e 
    end
end