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
-
#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.
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
#interactive ⇒ Object
Returns the value of attribute interactive.
13 14 15 |
# File 'lib/archimate/config.rb', line 13 def interactive @interactive end |
#logger ⇒ Object
Returns the value of attribute logger.
14 15 16 |
# File 'lib/archimate/config.rb', line 14 def logger @logger end |