Sha256: c8232ca58d4b35808ed5503c3ee9bf4ae619a2e88dd8083158bec2072ae995f8
Contents?: true
Size: 363 Bytes
Versions: 4
Compression:
Stored size: 363 Bytes
Contents
# frozen_string_literal: true class Atome 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.1.9 | lib/atome/extensions/ping.rb |
atome-0.5.1.4 | lib/atome/extensions/ping.rb |
atome-0.5.1.1 | lib/atome/extensions/ping.rb |
atome-0.4.7.0 | lib/atome/kernel/helpers/ping.rb |