class for author/committer/tagger lines
# File lib/grit/git-ruby/git_object.rb, line 23 def initialize(str) @email = '' @date = Time.now @offset = 0 m = /^(.*?) <(.*)> (\d+) ([+-])0*(\d+?)$/.match(str) if !m case str when /<.+>/ m, @name, @email = *str.match(/(.*) <(.+?)>/) else @name = str end else @name = m[1] @email = m[2] @date = Time.at(Integer(m[3])) @offset = (m[4] == "-" ? -1 : 1)*Integer(m[5]) end end
Generated with the Darkfish Rdoc Generator 2.