Class: Conpar::Configuration

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

Overview

Class for holding configuration values

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration


11
12
13
14
15
16
17
# File 'lib/conpar/configuration.rb', line 11

def initialize
  # Set default values
  @parser = Conpar::Directive

  # return config object after default values applied
  self
end

Instance Attribute Details

#parserModule

Returns Module Namespace to use with directive matching Namespace::MyModule.match_with must be defined

Returns:

  • (Module)

    Module Namespace to use with directive matching Namespace::MyModule.match_with must be defined


8
9
10
# File 'lib/conpar/configuration.rb', line 8

def parser
  @parser
end