Class: PVN::Diff::Change
- Inherits:
-
Object
- Object
- PVN::Diff::Change
- Includes:
- Loggable
- Defined in:
- lib/pvn/diff/change.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
Instance Method Summary collapse
-
#initialize(revision, action) ⇒ Change
constructor
A new instance of Change.
- #to_revision(rev) ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
14 15 16 |
# File 'lib/pvn/diff/change.rb', line 14 def action @action end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
13 14 15 |
# File 'lib/pvn/diff/change.rb', line 13 def revision @revision end |
Instance Method Details
#to_revision(rev) ⇒ Object
21 22 23 24 25 |
# File 'lib/pvn/diff/change.rb', line 21 def to_revision rev # or should we convert this to Revision::Argument, and @revisions is # Revision::Range? rev.kind_of?(Fixnum) ? rev.to_s : rev end |
#to_s ⇒ Object
27 28 29 |
# File 'lib/pvn/diff/change.rb', line 27 def to_s inspect end |