# File lib/gpgme.rb, line 95 def check_version(options = nil) version = nil if options.kind_of?(String) version = options elsif options.include?(:version) version = options[:version] end unless GPGME::gpgme_check_version(version) raise Error::InvalidVersion.new end end