Class: Command::PrintDiff::Target

Inherits:
Struct
  • Object
show all
Defined in:
lib/command/shared/print_diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



18
19
20
# File 'lib/command/shared/print_diff.rb', line 18

def data
  @data
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



18
19
20
# File 'lib/command/shared/print_diff.rb', line 18

def mode
  @mode
end

#oidObject

Returns the value of attribute oid

Returns:

  • (Object)

    the current value of oid



18
19
20
# File 'lib/command/shared/print_diff.rb', line 18

def oid
  @oid
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



18
19
20
# File 'lib/command/shared/print_diff.rb', line 18

def path
  @path
end

Instance Method Details

#diff_pathObject



19
20
21
# File 'lib/command/shared/print_diff.rb', line 19

def diff_path
  mode ? path : NULL_PATH
end