Sha256: d6d6b81d26efe939f94d76b4b9a21d53342cdce6ce3ae6dbd101151beac05f0f

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

module LetterGenerator
  @logger                      = Logger.new
  @config                      = ApplicationConfig.new(merge_files: true, safe: true)
  @debug_mode                  = false

  class << self
    attr_reader :config, :logger

    private

    attr_accessor :debug_mode

    public

    def debug_mode_enabled?
      debug_mode == true
    end

    def enable_debug_mode
      self.debug_mode = true
      LetterGenerator.config.debugging_libraries.each { |l| require l }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
letter_generator-0.2.2 lib/letter_generator/main.rb
letter_generator-0.2.1 lib/letter_generator/main.rb
letter_generator-0.2.0 lib/letter_generator/main.rb
letter_generator-0.1.0 lib/letter_generator/main.rb
letter_generator-0.0.4 lib/letter_generator/main.rb
letter_generator-0.0.3 lib/letter_generator/main.rb
letter_generator-0.0.1 lib/letter_generator/main.rb