From: "Ghelani, Vidhi" Date: 2005-02-12T04:44:30+09:00 Subject: a problem outputting text ------_=_NextPart_001_01C51072.125E8721 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey,=20 =20 I am trying to test some of my code. Here it is : ************************************************************************ ************************* class Song =20 def duration=3D (newDuration) @duration =3D newDuration end =20 def initialize(name, duration) @name =3D name @duration =3D duration end =20 attr_reader :name, :duration attr_writer :name, :duration =20 def print puts {"The song title is #{@name} and the track length is #{@duration} /n" } end =20 =20 end =20 =20 asong =3D Song.new("Mahi Ve", 2443) asong.print asong.name asong.duration =20 ************************************************************************ *********************** However, this does not print anything. There are no errors showing up either. All that happens is that it prints blank lines. =20 Does anyone know where I am going wrong ? =20 Any help would be appreciated. =20 Thanks,=20 Vidhi=20 =20 ------_=_NextPart_001_01C51072.125E8721--