Class: WhatWeb::Matcher::MD5

Inherits:
Base show all
Defined in:
lib/whatweb/matcher/md5.rb

Instance Attribute Summary

Attributes inherited from Base

#match, #target

Instance Method Summary collapse

Methods inherited from Base

#compiled_regexp, #initialize, match?, #search_context

Constructor Details

This class inherits a constructor from WhatWeb::Matcher::Base

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/whatweb/matcher/md5.rb', line 6

def match?
  target.md5sum == match[:md5]
end