R
Ravikiran Basa
i run the below code with ruby interpritor(1.8.7)
i am getting error " ruby: illegal switch in RUBYOPT: -=EF=BF=BD (Runtime=
Error)"
------------------------------------------------------------
class Animal
def set_noise(noi)
@noise=3Dnoi
end
def make_noise
@noise
end
end
ani=3DAnimal.new
ani1=3DAnimal.new
puts ani1.make_noise
ani.set_noise("gur")
puts ani.make_noise
---------------------------------------------------------------
if the same code is run in Netbeans IDE(Jruby) i am getting expected
output.
Can somebody explain the reason?
-- =
Posted via http://www.ruby-forum.com/.=
i am getting error " ruby: illegal switch in RUBYOPT: -=EF=BF=BD (Runtime=
Error)"
------------------------------------------------------------
class Animal
def set_noise(noi)
@noise=3Dnoi
end
def make_noise
@noise
end
end
ani=3DAnimal.new
ani1=3DAnimal.new
puts ani1.make_noise
ani.set_noise("gur")
puts ani.make_noise
---------------------------------------------------------------
if the same code is run in Netbeans IDE(Jruby) i am getting expected
output.
Can somebody explain the reason?
-- =
Posted via http://www.ruby-forum.com/.=