Class: SuperDiff::ValueInspection
- Inherits:
-
Object
- Object
- SuperDiff::ValueInspection
- Defined in:
- lib/super_diff/value_inspection.rb
Instance Attribute Summary collapse
-
#beginning ⇒ Object
readonly
Returns the value of attribute beginning.
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#middle ⇒ Object
readonly
Returns the value of attribute middle.
Instance Method Summary collapse
-
#initialize(args) ⇒ ValueInspection
constructor
A new instance of ValueInspection.
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
#beginning ⇒ Object (readonly)
Returns the value of attribute beginning.
3 4 5 |
# File 'lib/super_diff/value_inspection.rb', line 3 def beginning @beginning end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
3 4 5 |
# File 'lib/super_diff/value_inspection.rb', line 3 def end @end end |
#middle ⇒ Object (readonly)
Returns the value of attribute middle.
3 4 5 |
# File 'lib/super_diff/value_inspection.rb', line 3 def middle @middle end |