On 08/05/06, huseyin polat <huseyinpolat / gmail.com> wrote:


>  filename='rlv-ass'    # another external file
>  qe = QueryEval(filename)
>  qe.process_query_results(sorteddocs,1)
>
> ERROR :
> project4.rb:243: undefined method `QueryEval' for #<Object:0xb7f4c970>
> (NoMethodError)

This has nothing to do with external files.
You don't call classes  - you call methods.

That method could be a constructor if (as it looks above) you want a
QueryEval object to work with i.e.

class QueryEval
  def initialize(filename)
    # make a new object....
  end

  def process_query_results name, number
    # do whatever
  end

end

and then later you could call that as

  qe = QueryEval.new(filename)
  qe.process_query_results(sorteddocs,1)

Does that help at all?


--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/