Class: Hokusai::MovePatch
- Inherits:
-
Object
- Object
- Hokusai::MovePatch
- Defined in:
- ui/src/hokusai/diff.rb
Instance Attribute Summary collapse
-
#delete ⇒ Object
Returns the value of attribute delete.
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from:, to:, delete: false) ⇒ MovePatch
constructor
A new instance of MovePatch.
Constructor Details
#initialize(from:, to:, delete: false) ⇒ MovePatch
Returns a new instance of MovePatch.
5 6 7 8 9 |
# File 'ui/src/hokusai/diff.rb', line 5 def initialize(from:, to:, delete: false) @from = from @to = to @delete = delete end |
Instance Attribute Details
#delete ⇒ Object
Returns the value of attribute delete.
3 4 5 |
# File 'ui/src/hokusai/diff.rb', line 3 def delete @delete end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'ui/src/hokusai/diff.rb', line 3 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'ui/src/hokusai/diff.rb', line 3 def to @to end |