Class: Avm::Git::FileAutoFixup::CommitDelegator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Avm::Git::FileAutoFixup::CommitDelegator
- Defined in:
- lib/avm/git/file_auto_fixup.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(commit, index) ⇒ CommitDelegator
constructor
A new instance of CommitDelegator.
- #position ⇒ Object
Constructor Details
#initialize(commit, index) ⇒ CommitDelegator
Returns a new instance of CommitDelegator.
84 85 86 87 |
# File 'lib/avm/git/file_auto_fixup.rb', line 84 def initialize(commit, index) super(commit) @index = index end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
82 83 84 |
# File 'lib/avm/git/file_auto_fixup.rb', line 82 def index @index end |
Instance Method Details
#position ⇒ Object
89 90 91 |
# File 'lib/avm/git/file_auto_fixup.rb', line 89 def position index + 1 end |