Class: Logchange::Configuration
- Inherits:
-
Object
- Object
- Logchange::Configuration
- Defined in:
- lib/logchange/configuration.rb
Overview
Store configuration for this gem.
Instance Attribute Summary collapse
-
#changelog_directory ⇒ Object
Returns the value of attribute changelog_directory.
-
#root_path ⇒ Object
Returns the value of attribute root_path.
Instance Method Summary collapse
- #changelog_directory_path ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_directory ⇒ Object
Returns the value of attribute changelog_directory.
4 5 6 |
# File 'lib/logchange/configuration.rb', line 4 def changelog_directory @changelog_directory end |
#root_path ⇒ Object
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_path ⇒ Object
12 13 14 |
# File 'lib/logchange/configuration.rb', line 12 def changelog_directory_path File.join(@root_path, @changelog_directory) end |