def info result = '' self.devices.each_value {|device| result << device } result end when calling the above method i get the following error ./foo.rb:34:in `<<': can't convert MyDeviceObject into String (TypeError)