Module: Nis::Client::Local

Defined in:
lib/nis/client.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


135
136
137
# File 'lib/nis/client.rb', line 135

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

#remote?Boolean

Returns:

  • (Boolean)


139
140
141
# File 'lib/nis/client.rb', line 139

def remote?
  !local?
end