Created
March 28, 2012 18:12
-
-
Save Prevole/2228930 to your computer and use it in GitHub Desktop.
Yard documentation
This file contains 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
classe MyClass < ActionView::Helpers::FormBuilder | |
# Some text | |
# @param [String|Symbol] name Some text too | |
# @param [Hash] *args Options | |
# @option *args [Boolean ]:option_name Option description | |
%w[text_field password_field].each do |method_name| | |
define_method(method_name) do |name, *args| | |
# ... some code there ... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment