module MultiPassword::Strategy
Public Class Methods
included(klass)
click to toggle source
# File lib/multi_password/strategy.rb, line 5 def self.included(klass) klass.class_eval do def self.register(algorithm) MultiPassword.register(algorithm, self) end end end
register(algorithm)
click to toggle source
# File lib/multi_password/strategy.rb, line 7 def self.register(algorithm) MultiPassword.register(algorithm, self) end
Public Instance Methods
create(_password, _options = {})
click to toggle source
# File lib/multi_password/strategy.rb, line 13 def create(_password, _options = {}) raise MethodNotImplemented, 'create' end
validate_options(_options)
click to toggle source
# File lib/multi_password/strategy.rb, line 21 def validate_options(_options) raise MethodNotImplemented, 'validate_options' end
verify(_password, _encrypted_password)
click to toggle source
# File lib/multi_password/strategy.rb, line 17 def verify(_password, _encrypted_password) raise MethodNotImplemented, 'verify' end