Class: Chchchanges::Generator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGenerator

Returns a new instance of Generator.



6
7
8
9
# File 'lib/chchchanges/generator.rb', line 6

def initialize
  @changelog_hash = {}
  @changelog = "# Change Log\n"
end

Instance Attribute Details

#changelogObject

Returns the value of attribute changelog.



4
5
6
# File 'lib/chchchanges/generator.rb', line 4

def changelog
  @changelog
end

#changelog_hashObject

Returns the value of attribute changelog_hash.



4
5
6
# File 'lib/chchchanges/generator.rb', line 4

def changelog_hash
  @changelog_hash
end

Instance Method Details

#callObject



11
12
13
14
# File 'lib/chchchanges/generator.rb', line 11

def call
  read_changelog_entry_files
  write_to_changelog_file
end