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.
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
#index ⇒ Object (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
#position ⇒ Object
75 76 77 |
# File 'lib/avm/scms/auto_commit/for_file.rb', line 75 def position index + 1 end |