{"issue":{"state":"closed","created_at":"2011-11-27T18:09:21Z","updated_at":"2011-11-29T10:55:47Z","user":{"gravatar_id":"5d38ab152e1e3e219512a9859fcd93af","id":1075,"url":"https://api.github.com/users/dchelimsky","avatar_url":"https://secure.gravatar.com/avatar/5d38ab152e1e3e219512a9859fcd93af?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"dchelimsky"},"comments":5,"body":"Given this code from rspec-mocks:\r\n\r\n```ruby\r\n        [ :with, :and_return, :and_raise, :and_yield,\r\n          :once, :twice, :any_number_of_times,\r\n          :exactly, :times, :never,\r\n          :at_least, :at_most\r\n          ].each do |method_name|\r\n            class_eval(<<-EOM, __FILE__, __LINE__)\r\n              def #{method_name}(*args, &block)\r\n                record(:#{method_name}, *args, &block)\r\n              end\r\n            EOM\r\n        end\r\n```\r\n\r\nI'd like to document each of these methods using the @method tag. I tried doing it like this:\r\n\r\n```\r\n# @method with\r\n# @method and_return\r\n# etc\r\n```\r\n\r\n... and it only doc'd the first method. Then I tried it like this:\r\n\r\n\r\n```\r\n# @method with\r\n#\r\n# @method and_return\r\n#\r\n# ...\r\n#\r\n# @method at_most\r\n```\r\n\r\n... and it doc'd the first and last methods, but none in between.\r\n","assignee":null,"id":2361269,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":417,"title":"Arbitrary @method tag handling","closed_at":"2011-11-29T10:55:47Z","html_url":"https://github.com/lsegal/yard/issues/417","url":"https://api.github.com/repos/lsegal/yard/issues/417","milestone":null},"action":"closed"}