Method: Git::Author#initialize
- Defined in:
- lib/git/author.rb
#initialize(author_string) ⇒ Author
Returns a new instance of Author.
5 6 7 8 9 10 11 |
# File 'lib/git/author.rb', line 5 def initialize() if m = /(.*?) <(.*?)> (\d+) (.*)/.match() @name = m[1] @email = m[2] @date = Time.at(m[3].to_i) end end |