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

Version Path
cantango-0.9.4.7 lib/cantango/configuration/debug.rb
cantango-0.9.4.6 lib/cantango/configuration/debug.rb
cantango-0.9.4.5 lib/cantango/configuration/debug.rb
cantango-0.9.4.3 lib/cantango/configuration/debug.rb
cantango-0.9.4.2 lib/cantango/configuration/debug.rb
cantango-0.9.4.1 lib/cantango/configuration/debug.rb
cantango-0.9.4 lib/cantango/configuration/debug.rb
cantango-0.9.3.2 lib/cantango/configuration/debug.rb
cantango-0.8.9.5 lib/cantango/configuration/debug.rb
cantango-0.8.9.4 lib/cantango/configuration/debug.rb
cantango-0.8.9.3 lib/cantango/configuration/debug.rb
cantango-0.8.9.2 lib/cantango/configuration/debug.rb
cantango-0.8.9.1 lib/cantango/configuration/debug.rb
cantango-0.8.9 lib/cantango/configuration/debug.rb
cantango-0.8.8.1 lib/cantango/configuration/debug.rb
cantango-0.8.8 lib/cantango/configuration/debug.rb
cantango-0.8.7 lib/cantango/configuration/debug.rb
cantango-0.8.6.2 lib/cantango/configuration/debug.rb
cantango-0.8.6.1 lib/cantango/configuration/debug.rb
cantango-0.8.6 lib/cantango/configuration/debug.rb