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.



18
19
20
21
22
# File 'lib/archimate/config.rb', line 18

def initialize
  @interactive = true
  @logger = Logger.new(STDERR, progname: "archimate")
  @default_lang = IRB::Locale.new.lang
end

Instance Attribute Details

#default_langObject (readonly)

Returns the value of attribute default_lang.



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

def default_lang
  @default_lang
end

#interactiveObject

Returns the value of attribute interactive.



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

def interactive
  @interactive
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end