From: Graham Date: 2009-06-04T22:35:08+09:00 Subject: Why can't I write variables to a file? Help please! I'm a Ruby newbie and can't get the variables in the following script to write to a file (is it something to do with defining the variables?). # create variables class Person attr_accessor :name, :age end person_instance = Person.new person_instance.name = "David" person_instance.age= "37" # write to an HTML file File.open("test4.html", "w") do |f| f.puts "

person_instance.name (person_instance.age), sat at the table

" end