Mega Code Archive
Calling the attr_accessor method does the same job as calling both attr_reader and attr_writer together, for one or more instance me
#!/usr/bin/env ruby
class Gaits
attr_accessor :walk, :trot, :canter
end
Gaits.instance_methods.sort - Object.instance_methods