Merge pull request #16906 from dduugg/yard-rbi

Include .rbi shims in yard docs
This commit is contained in:
Mike McQuaid 2024-03-18 12:50:58 +00:00 committed by GitHub
commit af8b105388
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -5,10 +5,12 @@
--plugin sorbet --plugin sorbet
--load yard/ignore_directives.rb --load yard/ignore_directives.rb
--template-path yard/templates --template-path yard/templates
--exclude sorbet/rbi/gems/
--exclude test/ --exclude test/
--exclude vendor/ --exclude vendor/
--exclude yard/ --exclude yard/
extend/os/**/*.rb extend/os/**/*.rb
**/*.rb **/*.rb
**/*.rbi
- -
*.md *.md

View File

@ -6,6 +6,7 @@ class Hash
# This includes the values from the root hash and from all # This includes the values from the root hash and from all
# nested hashes and arrays. # nested hashes and arrays.
# #
# @example
# hash = { person: { name: 'Rob', age: '28' } } # hash = { person: { name: 'Rob', age: '28' } }
# #
# hash.deep_transform_values{ |value| value.to_s.upcase } # hash.deep_transform_values{ |value| value.to_s.upcase }