Class: Revision::Ancestor
- Inherits:
-
Struct
- Object
- Struct
- Revision::Ancestor
- Defined in:
- lib/revision.rb
Instance Attribute Summary collapse
-
#n ⇒ Object
Returns the value of attribute n.
-
#rev ⇒ Object
Returns the value of attribute rev.
Instance Method Summary collapse
Instance Attribute Details
#n ⇒ Object
Returns the value of attribute n
17 18 19 |
# File 'lib/revision.rb', line 17 def n @n end |
#rev ⇒ Object
Returns the value of attribute rev
17 18 19 |
# File 'lib/revision.rb', line 17 def rev @rev end |
Instance Method Details
#resolve(context) ⇒ Object
18 19 20 21 22 |
# File 'lib/revision.rb', line 18 def resolve(context) oid = rev.resolve(context) n.times { oid = context.commit_parent(oid) } oid end |