×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Bartosz Walecki
Added: Dec 6, 2016 2:08 PM
Modified: Dec 6, 2016 2:09 PM
Views: 7
Tags: colums
  1. {object_or_instance_name}.attributes.each_pair do |name, value|
  2.   puts "#{name} = #{value}"
  3. end