F
Faisal Raja
Hello ,
Well Im new to programming in Ruby Language ( Infact only an hour back
i started it ) .
class Student
def initialize(name)
@name = name
end
def show
s = "Name : " + name
return s
end
end
st = Student.new("Abc") ;
st.inspect
I have Windows Xp Sp2 n when i run this program on console , it doesn't
show me anything . There is no error but it is also not shwoing me
anything .
st.inspect should show info
st.to_s also doesn't show anything
if i write st.show
it also doesn't work .
I wuld be thankful if u people help me out
Thanks in advance
Well Im new to programming in Ruby Language ( Infact only an hour back
i started it ) .
class Student
def initialize(name)
@name = name
end
def show
s = "Name : " + name
return s
end
end
st = Student.new("Abc") ;
st.inspect
I have Windows Xp Sp2 n when i run this program on console , it doesn't
show me anything . There is no error but it is also not shwoing me
anything .
st.inspect should show info
st.to_s also doesn't show anything
if i write st.show
it also doesn't work .
I wuld be thankful if u people help me out
Thanks in advance