# File lib/ruote/storage/composite_storage.rb, line 61
    def self.delegate(method_name, type=nil)

      if type == nil
        define_method(method_name) do |*args|
          storage_for(args.first['type']).send(method_name, *args)
        end
      elsif type.is_a?(Fixnum)
        define_method(method_name) do |*args|
          storage_for(args[type]).send(method_name, *args)
        end
      else
        type = type.to_s
        define_method(method_name) do |*args|
          storage_for(type).send(method_name, *args)
        end
      end
    end