this ruby code works, but is there a more conventional or simplified way to write it:this ruby code works, but is there a more conve
this ruby code works, but is there a more conventional or simplified way to write it:this ruby code works, but is there a more conve