Class: Git::StreamMark

Inherits:
Object
  • Object
show all
Defined in:
lib/git/stream.rb

Constant Summary collapse

@@mark_counter =
1

Instance Method Summary collapse

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_sObject



76
77
78
# File 'lib/git/stream.rb', line 76

def to_s
  ":#{@id}"
end