class Net::SSH::KnownHosts

def initialize(source)

file. The path is expanded file File.expand_path.
Instantiate a new KnownHosts instance that will search the given known-hosts
def initialize(source)
  @source = File.expand_path(source)
end