Class: Avm::Scms::AutoCommit::ForFile::CommitDelegator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Avm::Scms::AutoCommit::ForFile::CommitDelegator
- Defined in:
- lib/avm/scms/auto_commit/for_file.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.
60 61 62 63 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 60 def initialize(commit, index) super(commit) @index = index end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
58 59 60 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 58 def index @index end |
Instance Method Details
#position ⇒ Object
65 66 67 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 65 def position index + 1 end |