Class: FitCommit::MessageParser
- Inherits:
-
Object
- Object
- FitCommit::MessageParser
- Defined in:
- lib/fit_commit/message_parser.rb
Constant Summary collapse
- GIT_VERBOSE_MARKER =
"# ------------------------ >8 ------------------------"- COMMENT_REGEX =
/\A#/
Instance Attribute Summary collapse
-
#message_path ⇒ Object
Returns the value of attribute message_path.
Instance Method Summary collapse
-
#initialize(message_path) ⇒ MessageParser
constructor
A new instance of MessageParser.
- #lines ⇒ Object
Constructor Details
#initialize(message_path) ⇒ MessageParser
Returns a new instance of MessageParser.
9 10 11 |
# File 'lib/fit_commit/message_parser.rb', line 9 def initialize() self. = end |
Instance Attribute Details
#message_path ⇒ Object
Returns the value of attribute message_path.
8 9 10 |
# File 'lib/fit_commit/message_parser.rb', line 8 def @message_path end |
Instance Method Details
#lines ⇒ Object
13 14 15 |
# File 'lib/fit_commit/message_parser.rb', line 13 def lines FitCommit::Line.from_text_array(relevant_lines) end |