Class: Chchchanges::Parser
- Inherits:
-
Object
- Object
- Chchchanges::Parser
- Defined in:
- lib/chchchanges/parser.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#type ⇒ Object
Returns the value of attribute type.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize ⇒ Parser
Returns a new instance of Parser.
7 8 9 10 11 |
# File 'lib/chchchanges/parser.rb', line 7 def initialize @entries = [] @version = "" @type = "" end |
Instance Attribute Details
#entries ⇒ Object
Returns the value of attribute entries.
5 6 7 |
# File 'lib/chchchanges/parser.rb', line 5 def entries @entries end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/chchchanges/parser.rb', line 5 def type @type end |
#version ⇒ Object
Returns the value of attribute version.
5 6 7 |
# File 'lib/chchchanges/parser.rb', line 5 def version @version end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/chchchanges/parser.rb', line 13 def call Dir.mkdir('.changelog_entries') unless Dir.exists?('.changelog_entries') parse_changelog write_to_files end |