Class: SimpleGit::Signature
- Inherits:
-
Object
- Object
- SimpleGit::Signature
- Defined in:
- lib/simple_git/signature.rb
Instance Attribute Summary collapse
-
#ptr ⇒ Object
Returns the value of attribute ptr.
Instance Method Summary collapse
- #email ⇒ Object
-
#initialize(commit) ⇒ Signature
constructor
A new instance of Signature.
- #name ⇒ Object
Constructor Details
#initialize(commit) ⇒ Signature
Returns a new instance of Signature.
5 6 7 |
# File 'lib/simple_git/signature.rb', line 5 def initialize(commit) @ptr = Git2::GitSignature.new(Git2.(commit.ptr)) end |
Instance Attribute Details
#ptr ⇒ Object
Returns the value of attribute ptr.
3 4 5 |
# File 'lib/simple_git/signature.rb', line 3 def ptr @ptr end |