module Ping
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/ping/config.rb, line 9 def config @config ||= Config.new end
configure() { |config| ... }
click to toggle source
# File lib/ping/config.rb, line 5 def configure yield config end
reset()
click to toggle source
Here we are implementing a reset method because for global values like this, it's best to clean up before/after each spec to ensure the system is back to a default state.
# File lib/ping/config.rb, line 16 def reset @config = Config.new end