class RSolr::Client
def evaluate_ruby_response request, response
instead, giving full access to the
RSolr::Error::InvalidRubyResponse
this method intercepts and raises a
If a SyntaxError is raised, then
attemps to bring the ruby string to life.
evaluates the response[:body],
def evaluate_ruby_response request, response begin Kernel.eval response[:body].to_s rescue SyntaxError raise RSolr::Error::InvalidRubyResponse.new request, response end end