Module: Nis::Client::Local

Defined in:
lib/nis/client.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


124
125
126
# File 'lib/nis/client.rb', line 124

def local?
  host == '127.0.0.1' || host == 'localhost'
end

#remote?Boolean

Returns:

  • (Boolean)


128
129
130
# File 'lib/nis/client.rb', line 128

def remote?
  !local?
end