Permalink
Browse files

Alias User#dump to User#to_s

  • Loading branch information...
1 parent 1fc4f49 commit 521a9263c1e299328cd63d19f0d28cdf5679af1c @manveru committed May 31, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/git_store/user.rb
View
@@ -3,6 +3,7 @@ class User < Struct.new(:name, :email, :time)
def dump
"#{ name } <#{email}> #{ time.to_i } #{ time.strftime('%z') }"
end
+ alias to_s dump
def self.from_config
name = IO.popen("git config user.name") { |io| io.gets.chomp }

0 comments on commit 521a926

Please sign in to comment.