module Nis::Client::Local

Public Instance Methods

local?() click to toggle source
# File lib/nis/client.rb, line 135
def local?
  host == '127.0.0.1' || host == 'localhost'
end
remote?() click to toggle source
# File lib/nis/client.rb, line 139
def remote?
  !local?
end