Class: Avm::Scms::AutoCommit::ForFile::CommitDelegator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/avm/scms/auto_commit/for_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit, index) ⇒ CommitDelegator

Returns a new instance of CommitDelegator.



70
71
72
73
# File 'lib/avm/scms/auto_commit/for_file.rb', line 70

def initialize(commit, index)
  super(commit)
  @index = index
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



68
69
70
# File 'lib/avm/scms/auto_commit/for_file.rb', line 68

def index
  @index
end

Instance Method Details

#positionObject



75
76
77
# File 'lib/avm/scms/auto_commit/for_file.rb', line 75

def position
  index + 1
end