Skip to content

Instantly share code, notes, and snippets.

@rudolph9
Created April 27, 2012 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudolph9/2510343 to your computer and use it in GitHub Desktop.
Save rudolph9/2510343 to your computer and use it in GitHub Desktop.
stack_question.iterating_over_yard_macro_registers
# see http://stackoverflow.com/questions/10343634/iterating-over-the-registers-of-a-yardoc-macro for original question.
module my_module
class Resource
# @macro dsl_method
# @method $1(${2--2})
# @return [${2}] the return value of $0
def self.property(name, type, args*) end
end
class Post < Resource
property :title, String, arg1, arg2, arg3
property :view_cout, Integer
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment