Class: Logchange::Configuration

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

Overview

Store configuration for this gem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @changelog_directory = 'changelog'
  @root_path = Dir.pwd
end

Instance Attribute Details

#changelog_directoryObject

Returns the value of attribute changelog_directory.



4
5
6
# File 'lib/logchange/configuration.rb', line 4

def changelog_directory
  @changelog_directory
end

#root_pathObject

Returns the value of attribute root_path.



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

def root_path
  @root_path
end

Instance Method Details

#changelog_directory_pathObject



12
13
14
# File 'lib/logchange/configuration.rb', line 12

def changelog_directory_path
  File.join(@root_path, @changelog_directory)
end