Class: Archimate::Config

Inherits:
Object
  • Object
show all
Includes:
Observable, Singleton
Defined in:
lib/archimate/config.rb

Overview

This is the singleton class that contains application configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



16
17
18
19
# File 'lib/archimate/config.rb', line 16

def initialize
  @interactive = true
  @logger ||= Logger.new(STDERR, progname: "archimate")
end

Instance Attribute Details

#interactiveObject

Returns the value of attribute interactive.



13
14
15
# File 'lib/archimate/config.rb', line 13

def interactive
  @interactive
end

#loggerObject

Returns the value of attribute logger.



14
15
16
# File 'lib/archimate/config.rb', line 14

def logger
  @logger
end