We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92e7434 commit 23981c5Copy full SHA for 23981c5
1 file changed
README.md
@@ -42,6 +42,15 @@ ruby2_keywords def oldstyle_keywords(options = {})
42
end
43
```
44
45
+You can do the same for a method defined by `Module#define_method`:
46
+
47
+```ruby
48
+define_method :delegating_method do |*args, &block|
49
+ other_method(*args, &block)
50
+end
51
+ruby2_keywords :delegating_method
52
+```
53
54
## Contributing
55
56
Bug reports and pull requests are welcome on GitHub at https://bugs.ruby-lang.org.
0 commit comments