class FitCommit::Line
Attributes
lineno[RW]
text[RW]
Public Class Methods
from_text_array(text_array)
click to toggle source
# File lib/fit_commit/line.rb, line 18 def self.from_text_array(text_array) text_array.map.with_index(1) { |text, lineno| new(lineno, text) } end
new(lineno, text)
click to toggle source
# File lib/fit_commit/line.rb, line 5 def initialize(lineno, text) self.lineno = lineno self.text = text end
Public Instance Methods
empty?()
click to toggle source
# File lib/fit_commit/line.rb, line 14 def empty? text.empty? end
to_s()
click to toggle source
# File lib/fit_commit/line.rb, line 10 def to_s text end