Class: FakeGit::HashObject
- Inherits:
-
Object
- Object
- FakeGit::HashObject
- Defined in:
- lib/fake_git/hash_object.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
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 |