Class: Herodotus::Configuration
- Inherits:
-
Object
- Object
- Herodotus::Configuration
- Defined in:
- lib/herodotus/configuration.rb
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#changelog_filename ⇒ Object
Returns the value of attribute changelog_filename.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/herodotus/configuration.rb', line 5 def initialize @changelog_filename = 'CHANGES' end |
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
10 11 12 |
# File 'lib/herodotus/configuration.rb', line 10 def config @config end |
Instance Attribute Details
#base_path ⇒ Object
Returns the value of attribute base_path.
3 4 5 |
# File 'lib/herodotus/configuration.rb', line 3 def base_path @base_path end |
#changelog_filename ⇒ Object
Returns the value of attribute changelog_filename.
3 4 5 |
# File 'lib/herodotus/configuration.rb', line 3 def changelog_filename @changelog_filename end |
Class Method Details
.reset! ⇒ Object
18 19 20 |
# File 'lib/herodotus/configuration.rb', line 18 def self.reset! self.config = Configuration.new end |
.run {|config| ... } ⇒ Object
14 15 16 |
# File 'lib/herodotus/configuration.rb', line 14 def self.run yield config end |