Sha256: 806bed359eabccff3840f0759e7ce07d9c4076bbab1e29e1778e35598791f3a1

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

def ping(address, my_proc: false)
  # if  RUBY_ENGINE.downcase != 'opal'
  def up?(host, my_proc)
    check = Net::Ping::External.new(host)
    if check.ping?
      puts "ping respond!! "
    end
  end

  chost = address
  puts up?(chost, my_proc) # prints "true" if ping replies
  # end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.4.5.4 lib/atome/extensions/ping.rb