Class: Git::StreamMark
- Inherits:
-
Object
- Object
- Git::StreamMark
- Defined in:
- lib/git/stream.rb
Constant Summary collapse
- @@mark_counter =
1
Instance Method Summary collapse
-
#initialize(id = (@@mark_counter += 1)) ⇒ StreamMark
constructor
A new instance of StreamMark.
- #to_s ⇒ Object
Constructor Details
#initialize(id = (@@mark_counter += 1)) ⇒ StreamMark
Returns a new instance of StreamMark.
72 73 74 |
# File 'lib/git/stream.rb', line 72 def initialize(id = (@@mark_counter += 1)) @id = id end |
Instance Method Details
#to_s ⇒ Object
76 77 78 |
# File 'lib/git/stream.rb', line 76 def to_s ":#{@id}" end |