{"action":"closed","issue":{"url":"https://api.github.com/repos/uqbar-project/stones-spec/issues/14","labels_url":"https://api.github.com/repos/uqbar-project/stones-spec/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/uqbar-project/stones-spec/issues/14/comments","events_url":"https://api.github.com/repos/uqbar-project/stones-spec/issues/14/events","html_url":"https://github.com/uqbar-project/stones-spec/issues/14","id":85955276,"number":14,"title":"Pretty print directions in Ruby language","user":{"login":"faloi","id":1585835,"avatar_url":"https://avatars.githubusercontent.com/u/1585835?v=3","gravatar_id":"","url":"https://api.github.com/users/faloi","html_url":"https://github.com/faloi","followers_url":"https://api.github.com/users/faloi/followers","following_url":"https://api.github.com/users/faloi/following{/other_user}","gists_url":"https://api.github.com/users/faloi/gists{/gist_id}","starred_url":"https://api.github.com/users/faloi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faloi/subscriptions","organizations_url":"https://api.github.com/users/faloi/orgs","repos_url":"https://api.github.com/users/faloi/repos","events_url":"https://api.github.com/users/faloi/events{/privacy}","received_events_url":"https://api.github.com/users/faloi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uqbar-project/stones-spec/labels/output","name":"output","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-07T22:24:41Z","updated_at":"2015-10-30T01:45:52Z","closed_at":"2015-10-30T01:45:52Z","body":"If you try to print a direction you will get something like\r\n`#<Proc:0x007f3d184797d8@/home/faloi/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/ruby-stones-0.1.1/lib/stones/direction.rb:4 (lambda)>`, because they are implemented as lambdas. That's bad because it makes impossible to check functions that return directions. \r\n\r\nThis can be fixed by doing:\r\n\r\n```ruby\r\nx = lambda {}\r\ndef x.to_s \r\n   \"whatever\"\r\nend\r\n```"}}