Class: Hokusai::MovePatch

Inherits:
Object
  • Object
show all
Defined in:
ui/src/hokusai/diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deleteObject

Returns the value of attribute delete.



3
4
5
# File 'ui/src/hokusai/diff.rb', line 3

def delete
  @delete
end

#fromObject

Returns the value of attribute from.



3
4
5
# File 'ui/src/hokusai/diff.rb', line 3

def from
  @from
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'ui/src/hokusai/diff.rb', line 3

def to
  @to
end