lib/dionysus/string/version_match.rb in dionysus-2.1.0 vs lib/dionysus/string/version_match.rb in dionysus-2.2.0.0.pre1

- old
+ new

@@ -1,8 +1,10 @@ class String - # @param (String) req Gem version requirement - # @return (Boolean) true if the given requirement is satisfied by the current - # String + # @param req [String] Gem version requirement + # @return [true] if the given requirement is satisfied by the current String + # @return [false] otherwise + # @see http://rubydoc.info/github/rubygems/rubygems/Gem/Requirement Gem::Requirement + # @see http://rubydoc.info/github/rubygems/rubygems/Gem/Version Gem::Version def version_match?(req) Gem::Requirement.new(req) =~ Gem::Version.new(self) end end