class HrrRbSsh::Authentication::Authenticator

Public Class Methods

new(&block) click to toggle source
# File lib/hrr_rb_ssh/authentication/authenticator.rb, line 7
def initialize &block
  @proc = block
end

Public Instance Methods

authenticate(context) click to toggle source
# File lib/hrr_rb_ssh/authentication/authenticator.rb, line 11
def authenticate context
  @proc.call context
end