Commits

Anonymous committed ddbf36b

switch to use autoload

  • Participants
  • Parent commits 5852e17

Comments (0)

Files changed (1)

lib/mrt/ingest.rb

 # Author::    Erik Hetzner  (mailto:erik.hetzner@ucop.edu)
 # Copyright:: Copyright (c) 2011, Regents of the University of California
 
-require 'mrt/ingest/client'
-require 'mrt/ingest/iobject'
-require 'mrt/ingest/message_digest'
-require 'mrt/ingest/one_time_server'
-require 'mrt/ingest/request'
-require 'mrt/ingest/response'
-
 module Mrt
   module Ingest
+    autoload :Client, "mrt/ingest/client"
+    autoload :IObject, "mrt/ingest/iobject"
+    autoload :MessageDigest, "mrt/ingest/message_digest"
+    autoload :OneTimeServer, "mrt/ingest/one_time_server"
+    autoload :Request, "mrt/ingest/request"
+    autoload :Response, "mrt/ingest/response"
+
     class IngestException < Exception
     end
   end