Class: Pikuri::Workspace::Confirmer::Change

Inherits:
Data
  • Object
show all
Defined in:
lib/pikuri/workspace/confirmer.rb

Overview

A structured file change for a Write/Edit confirmation: the semantic change (path + old bytes + new bytes), not a pre-rendered string, so diff rendering stays the confirmer's job. Terminal shells to diff; a richer client renders the same Change its own way. old is the current bytes, or nil for a new file.

Instance Attribute Summary collapse

Instance Attribute Details

#newObject (readonly)

Returns the value of attribute new

Returns:

  • (Object)

    the current value of new



108
109
110
# File 'lib/pikuri/workspace/confirmer.rb', line 108

def new
  @new
end

#oldObject (readonly)

Returns the value of attribute old

Returns:

  • (Object)

    the current value of old



108
109
110
# File 'lib/pikuri/workspace/confirmer.rb', line 108

def old
  @old
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



108
109
110
# File 'lib/pikuri/workspace/confirmer.rb', line 108

def path
  @path
end