{"id":680,"date":"2014-07-10T16:35:02","date_gmt":"2014-07-10T06:35:02","guid":{"rendered":"http:\/\/www.software-testing.com.au\/blog\/?p=680"},"modified":"2014-07-10T16:35:02","modified_gmt":"2014-07-10T06:35:02","slug":"more-ruby-goodness-for-testing","status":"publish","type":"post","link":"http:\/\/www.software-testing.com.au\/blog\/2014\/07\/10\/more-ruby-goodness-for-testing\/","title":{"rendered":"More Ruby goodness for testing"},"content":{"rendered":"<p>Did I mention how much I love Ruby?<\/p>\n<blockquote><p>items = (&#8220;A&#8221;..&#8221;Z&#8221;).to_a.in_groups(5,false)<\/p>\n<p>5.times do | i |<br \/>\nputs items[i].flatten.to_s<br \/>\nputs &#8220;&#8212;-&#8221;<br \/>\nend<\/p><\/blockquote>\n<p>Source code is at <a href=\"http:\/\/apidock.com\/rails\/Array\/in_groups\">http:\/\/apidock.com\/rails\/Array\/in_groups<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did I mention how much I love Ruby? items = (&#8220;A&#8221;..&#8221;Z&#8221;).to_a.in_groups(5,false) 5.times do | i | puts items[i].flatten.to_s puts &#8220;&#8212;-&#8221; end Source code is at http:\/\/apidock.com\/rails\/Array\/in_groups<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,36,90],"tags":[],"class_list":["post-680","post","type-post","status-publish","format-standard","hentry","category-ruby","category-test-tools","category-tool-assisted-testing"],"_links":{"self":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/comments?post=680"}],"version-history":[{"count":2,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/680\/revisions"}],"predecessor-version":[{"id":682,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/posts\/680\/revisions\/682"}],"wp:attachment":[{"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/media?parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/categories?post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.software-testing.com.au\/blog\/wp-json\/wp\/v2\/tags?post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}