From: Rob Boellaard Date: 2002-02-02T20:43:11+09:00 Subject: [newbie] RubyWin question This is a multi-part message in MIME format. ------=_NextPart_000_0083_01C1ABE6.13C52700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 Hi everybody, I am just getting started with Ruby and I am going through the = "Programming Ruby" book. I have a question about how to work RubyWin = (probably very simple) while this works: def sayGoodnight(name) result =3D "Goodnight, " + name return result end sayGoodnight("Rob") [Ctrl E] Goodnight, Rob This does not work (there is no output): class Song def initialize (name, artist, duration) @name =3D name @artist =3D artist @duration =3D duration end end aSong =3D Song.new("Valse sem Nome", "Baden Powell", 536) aSong.inspect [Ctrl E] Please help :-) tnx Rob ------=_NextPart_000_0083_01C1ABE6.13C52700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
   
  Hi everybody,
 
  I am just getting started with = Ruby and I am=20 going through the "Programming Ruby" book. I have a question about how = to work=20 RubyWin (probably very simple)
 
  while this works:
 
def sayGoodnight(name)
  result =3D "Goo= dnight, " + name
  return result
end<= BR>
sayGoodnight("Rob")
 
 [Ctrl E]
 
Goodnight, Rob
 
This does not work (there is no=20 output):
 
class Song
  def initialize = (name, artist,=20 duration)
    @name =3D name
    = @artist =3D=20 artist
    @duration =3D duration
 =20 end
end
 
aSong =3D Song.new("Valse sem Nome", = "Baden Powell",=20 536)

aSong.inspect
 [Ctrl E]
 
 
  Please help :-)
 
  tnx
  Rob
------=_NextPart_000_0083_01C1ABE6.13C52700--