rootdir (lib/inline.rb)

    # File lib/inline.rb, line 106
      def self.rootdir
        env = ENV['INLINEDIR'] || ENV['HOME']

        if env.nil? and WINDOZE then
          # try HOMEDRIVE + HOMEPATH combination
          if ENV['HOMEDRIVE'] && ENV['HOMEPATH'] then
            env = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
          end

          # no HOMEDRIVE? use APPDATA
          env = ENV['APPDATA'] if env.nil? and ENV['APPDATA']

          # bummer, still no env? then fall to USERPROFILE
          env = ENV['USERPROFILE'] if env.nil? and ENV['USERPROFILE']
        end

        if env.nil? then
          abort "Define INLINEDIR or HOME in your environment and try again"
        end

        unless defined? @@rootdir and env == @@rootdir and test ?d, @@rootdir then
          rootdir = env
          Dir.mkdir rootdir, 0700 unless test ?d, rootdir
          Dir.assert_secure rootdir
          @@rootdir = rootdir
        end

        @@rootdir
      end