Mod_ruby and classes

Hi,
I ask you for help because I don’t understand why mod_ruby say me there’s an
error in my script whereas this one works with Ruby itself.

#-------------Script-------------#
class Rbma_query
def initialize(requete)
@requete=requete
@resultat=Array.new
end
def requete
@requete
end
def resultat
@resultat
end
def requete=(str)
@requete=str
end
def escape_pretty_html
#some code
end
def exec
#somme code
end
end

query1=Rbma_query.new
query1.requete="select all from here;"
query1.exec
print query1.escape_pretty_html

#-----------end------------#

in /usr/local/apache2/logs/error_log you can see that mod_ruby say you that
’requete=’ is an undefined method !?!?!?!?!?!?!

Thx
Julien Vivenot, a french sixteen-year-old bad developer

(Excuse me for my poor english)

···

MSN Search, le moteur de recherche qui pense comme vous !
http://search.msn.fr/