Skip to content

Instantly share code, notes, and snippets.

@Prevole Prevole/somefile.rb
Created Mar 28, 2012

Embed
What would you like to do?
Yard documentation
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
You can’t perform that action at this time.