Class: Hokusai::InsertPatch
- Inherits:
-
Object
- Object
- Hokusai::InsertPatch
- Defined in:
- ui/src/hokusai/diff.rb
Instance Attribute Summary collapse
-
#delete ⇒ Object
Returns the value of attribute delete.
-
#target ⇒ Object
Returns the value of attribute target.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(target:, value:, delete: false) ⇒ InsertPatch
constructor
A new instance of InsertPatch.
Constructor Details
#initialize(target:, value:, delete: false) ⇒ InsertPatch
Returns a new instance of InsertPatch.
15 16 17 18 19 |
# File 'ui/src/hokusai/diff.rb', line 15 def initialize(target:, value:, delete: false) @target = target @value = value @delete = delete end |
Instance Attribute Details
#delete ⇒ Object
Returns the value of attribute delete.
13 14 15 |
# File 'ui/src/hokusai/diff.rb', line 13 def delete @delete end |
#target ⇒ Object
Returns the value of attribute target.
13 14 15 |
# File 'ui/src/hokusai/diff.rb', line 13 def target @target end |
#value ⇒ Object
Returns the value of attribute value.
13 14 15 |
# File 'ui/src/hokusai/diff.rb', line 13 def value @value end |