Class: Abbey::Settings
- Inherits:
-
Object
- Object
- Abbey::Settings
- Defined in:
- lib/settings.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, namespaces = [], logger = nil) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(path, namespaces = [], logger = nil) ⇒ Settings
Returns a new instance of Settings.
10 11 12 13 14 |
# File 'lib/settings.rb', line 10 def initialize(path, namespaces = [], logger = nil) @path = path @namespaces = namespaces @logger = (logger || Logger.new('/dev/null')) end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/settings.rb', line 5 def logger @logger end |
#namespaces ⇒ Object
Returns the value of attribute namespaces.
5 6 7 |
# File 'lib/settings.rb', line 5 def namespaces @namespaces end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/settings.rb', line 5 def path @path end |