Skip to content

Commit 9cf7c97

Browse files
jeremyevansnobu
authored andcommitted
Fix usage example in README
The examle warns in Ruby 2.7, and it isn't a case where you would want to use ruby2_keywords.
1 parent dcc6958 commit 9cf7c97

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ For class/module instance methods:
2727
require 'ruby2_keywords'
2828

2929
module YourModule
30-
ruby2_keywords def oldstyle_keywords(options = {})
30+
ruby2_keywords def delegating_method(*args)
31+
other_method(*args)
3132
end
3233
end
3334
```

0 commit comments

Comments
 (0)