Class: Avm::Git::FileAutoFixup::CommitDelegator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/avm/git/file_auto_fixup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit, index) ⇒ CommitDelegator

Returns a new instance of CommitDelegator.



56
57
58
59
# File 'lib/avm/git/file_auto_fixup.rb', line 56

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

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



54
55
56
# File 'lib/avm/git/file_auto_fixup.rb', line 54

def index
  @index
end

Instance Method Details

#positionObject



61
62
63
# File 'lib/avm/git/file_auto_fixup.rb', line 61

def position
  index + 1
end