Class: Archimate::Config
- Inherits:
-
Object
- Object
- Archimate::Config
- Includes:
- Observable, Singleton
- Defined in:
- lib/archimate/config.rb
Overview
This is the singleton class that contains application configuration.
Instance Attribute Summary collapse
-
#default_lang ⇒ Object
readonly
Returns the value of attribute default_lang.
-
#interactive ⇒ Object
Returns the value of attribute interactive.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_lang ⇒ Object (readonly)
Returns the value of attribute default_lang.
16 17 18 |
# File 'lib/archimate/config.rb', line 16 def default_lang @default_lang end |
#interactive ⇒ Object
Returns the value of attribute interactive.
14 15 16 |
# File 'lib/archimate/config.rb', line 14 def interactive @interactive end |
#logger ⇒ Object
Returns the value of attribute logger.
15 16 17 |
# File 'lib/archimate/config.rb', line 15 def logger @logger end |