Class: FitCommit::MessageParser

Inherits:
Object
  • Object
show all
Defined in:
lib/fit_commit/message_parser.rb

Constant Summary collapse

GIT_VERBOSE_MARKER =
"# ------------------------ >8 ------------------------"
COMMENT_REGEX =
/\A#/

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message_path)
  self.message_path = message_path
end

Instance Attribute Details

#message_pathObject

Returns the value of attribute message_path.



8
9
10
# File 'lib/fit_commit/message_parser.rb', line 8

def message_path
  @message_path
end

Instance Method Details

#linesObject



13
14
15
# File 'lib/fit_commit/message_parser.rb', line 13

def lines
  FitCommit::Line.from_text_array(relevant_lines)
end