Include .rbi shims in yard docs

This commit is contained in:
Douglas Eichelberger 2024-03-17 20:53:58 -07:00
parent bb753a6c48
commit 9f63674125
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 }