Class Grit::Actor
In: lib/grit/actor.rb
Parent: Object

Methods

from_string   inspect   new   output  

External Aliases

name -> to_s

Attributes

email  [R] 
name  [R] 

Public Class methods

Create an Actor from a string.

str - The String in this format: ‘John Doe <jdoe@example.com>’

Returns Git::Actor.

Public Instance methods

Pretty object inspection

Outputs an actor string for Git commits.

  actor = Actor.new('bob', 'bob@email.com')
  actor.output(time) # => "bob <bob@email.com> UNIX_TIME +0700"

time - The Time the commit was authored or committed.

Returns a String.

[Validate]