5 6 7 8 9 10 11 12 13 14
# File 'lib/fake_git/hash_object.rb', line 5 def call(*args) obj = FakeGit::Priv::Object.new( type: "blob", content: args.first, index: Digest::SHA1.hexdigest(args.first) ) obj.write! obj end