register_services (Net::SFTP::Operations)

    # File lib/net/sftp/operations/services.rb, line 20
      def register_services( container )
        container.namespace :operations
        container.operations.use :model => :prototype do |ns|
          [
            :open,
            [ :close_handle, :close ],
            :read, :write, :opendir, :readdir, :remove,
            :stat, :lstat, :fstat, :setstat, :fsetstat,
            :mkdir, :rmdir, :realpath, :rename
          ].each do |op|
            array = op.is_a?( Array )
            ns.register( array ? op.first : op ) do |c,p|
              require "net/sftp/operations/#{array ? op.last : op}"
              klass_name = ( array ? op.last : op ).to_s
              klass = const_get( klass_name[0,1].upcase + klass_name[1..-1] )
              klass.new c[:log_for, p], c[:session], c[:protocol][:driver]
            end
          end
        end
      end