Module: Nis::Client::Local

Defined in:
lib/nis/client.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


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

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

#remote?Boolean

Returns:

  • (Boolean)


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

def remote?
  !local?
end