Class Git::Author
In: lib/git/author.rb
Parent: Object

Methods

new  

Attributes

date  [RW] 
email  [RW] 
name  [RW] 

Public Class methods

[Source]

# File lib/git/author.rb, line 5
    def initialize(author_string)
      if m = /(.*?) <(.*?)> (\d+) (.*)/.match(author_string)
        @name = m[1]
        @email = m[2]
        @date = Time.at(m[3].to_i)
      end
    end

[Validate]