class Git::Author
An author in a Git commit
Attributes
date[RW]
email[RW]
name[RW]
Public Class Methods
new(author_string)
click to toggle source
# File lib/git/author.rb, line 8 def initialize(author_string) return unless (m = /(.*?) <(.*?)> (\d+) (.*)/.match(author_string)) @name = m[1] @email = m[2] @date = Time.at(m[3].to_i) end