Module: Webmention::Verification::Registerable

Included in:
Verifiers
Defined in:
lib/webmention/verification/registerable.rb

Instance Method Summary collapse

Instance Method Details

#register(klass) ⇒ Object



4
5
6
# File 'lib/webmention/verification/registerable.rb', line 4

def register(klass)
  klass.mime_types.each { |mime_type| registered[mime_type] = klass }
end

#registeredObject



8
9
10
# File 'lib/webmention/verification/registerable.rb', line 8

def registered
  @registered ||= {}
end