module Boson # Base class for runners. class Runner class<@options[:verbose]} end def autoload_command(cmd, opts={:verbose=>verbose?}) Index.read (lib = Index.find_library(cmd)) && Manager.load(lib, opts) lib end def define_autoloader class << ::Boson.main_object def method_missing(method, *args, &block) if Runner.autoload_command(method.to_s) send(method, *args, &block) if respond_to?(method) else super end end end end #:startdoc: end end end