Skip to content

Commit

Permalink
docs: Update description of compatible method
Browse files Browse the repository at this point in the history
Co-authored-by: Robb Kidd <[email protected]>
  • Loading branch information
arielvalentin and robbkidd authored Apr 1, 2022
1 parent 7c70daf commit 258198d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ module Instrumentation
# end
#
# # if the target library is present, is it compatible?
# # Common ways to retrieve a gem's version for comparison:
# # - ::Gemname::VERSION if the gem declares a version constant
# # - ::Gemname.version if the gem has provided a version method on the gem class
# # If a VERSION constant or version method are not available, as a fallback you can:
# # - Gem.loaded_specs.fetch('gemname').version - attempt to retrieve the gemspec from the gems currently loaded and use its version
# compatible do
# Gem::Version.new(Sinatra::VERSION)) > MIN_VERSION
# end
Expand Down

0 comments on commit 258198d

Please sign in to comment.