Sha256: 501482906820d60e65e7bd11ebf73b27b825b602e2aca5beef58d2af3ae9ad9e
Contents?: true
Size: 450 Bytes
Versions: 20
Compression:
Stored size: 450 Bytes
Contents
module CanTango class Configuration # Note: This config feature is currently not used, but could potentially be of use in the future class Debug include Singleton def set state = :on raise ArgumentError, "Must be :on or :off" unless !state || [:on, :off].include?(state) @state = state || :on end def on? @state == :on end def off? !on? end end end end
Version data entries
20 entries across 20 versions & 1 rubygems