def[](key)
      if @vars.has_key?(key)
        if @vars[key].class == String
          @vars[key]
            .gsub("<home>", @vars[:home_dir])
            .gsub("<date>", @vars[:date])
            .gsub("<time>", @vars[:time])
            .gsub("<prog>", @vars[:program_noext])
            .gsub("<host>", @vars[:host_name])
        else
          @vars[key]
        end
      else
        raise RBatch::VariablesException, "no such key exist :" + key.to_s
      end
    end
def[](key)
      if @vars.has_key?(key)
        if @vars[key].class == String
          @vars[key]
            .gsub("<home>", @vars[:home_dir])
            .gsub("<date>", @vars[:date])
            .gsub("<time>", @vars[:time])
            .gsub("<prog>", @vars[:program_noext])
            .gsub("<host>", @vars[:host_name])
        else
          @vars[key]
        end
      else
        raise RBatch::VariablesException, "no such key exist :" + key.to_s
      end
    end
end def