Class: SuperDiff::ValueInspection

Inherits:
Object
  • Object
show all
Defined in:
lib/super_diff/value_inspection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ ValueInspection

Returns a new instance of ValueInspection.



5
6
7
8
9
# File 'lib/super_diff/value_inspection.rb', line 5

def initialize(args)
  @beginning = args.fetch(:beginning)
  @middle = args.fetch(:middle)
  @end = args.fetch(:end)
end

Instance Attribute Details

#beginningObject (readonly)

Returns the value of attribute beginning.



3
4
5
# File 'lib/super_diff/value_inspection.rb', line 3

def beginning
  @beginning
end

#endObject (readonly)

Returns the value of attribute end.



3
4
5
# File 'lib/super_diff/value_inspection.rb', line 3

def end
  @end
end

#middleObject (readonly)

Returns the value of attribute middle.



3
4
5
# File 'lib/super_diff/value_inspection.rb', line 3

def middle
  @middle
end