Created
April 27, 2012 15:52
-
-
Save rudolph9/2510343 to your computer and use it in GitHub Desktop.
stack_question.iterating_over_yard_macro_registers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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