Sha256: c170e0f6400a19fdbc059e510d28b6001340a7a5f70d6876ad0d63b6a5410561
Contents?: true
Size: 297 Bytes
Versions: 18
Compression:
Stored size: 297 Bytes
Contents
# frozen_string_literal: true # ping method class Atome def up?(host, _my_proc) check = Net::Ping::External.new(host) return unless check.ping? puts 'ping respond!!' end def ping(address, my_proc: false) puts up(address, my_proc) # prints "true" if ping replies end end
Version data entries
18 entries across 18 versions & 1 rubygems