Class: FitCommit::MessageParser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_path) ⇒ MessageParser

Returns a new instance of MessageParser.



6
7
8
# File 'lib/fit_commit/message_parser.rb', line 6

def initialize(message_path)
  self.message_path = message_path
end

Instance Attribute Details

#message_pathObject

Returns the value of attribute message_path.



5
6
7
# File 'lib/fit_commit/message_parser.rb', line 5

def message_path
  @message_path
end

Instance Method Details

#linesObject



10
11
12
# File 'lib/fit_commit/message_parser.rb', line 10

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