Class: Abbey::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, namespaces = [], logger = nil) ⇒ Settings

Returns a new instance of Settings.

Parameters:

  • path (String)

    Filesystem path to store the data in

  • namespaces (Array) (defaults to: [])

    Namespaces to create

  • logger (Logger) (defaults to: nil)


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

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/settings.rb', line 5

def logger
  @logger
end

#namespacesObject

Returns the value of attribute namespaces.



5
6
7
# File 'lib/settings.rb', line 5

def namespaces
  @namespaces
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/settings.rb', line 5

def path
  @path
end