Method: Aef::Hosts::File.read

Defined in:
lib/aef/hosts/file.rb

.read(path) ⇒ Aef::Hosts::File

Parses a hosts file given as path.

Parameters:

  • path (Pathname)

    the hosts file path

Returns:



63
64
65
# File 'lib/aef/hosts/file.rb', line 63

def read(path)
  new(path).read
end