Class: Json::Merge::ThreeWayDecision::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/json/merge/three_way_decision.rb,
sig/json/merge.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changesObject (readonly)

Returns the value of attribute changes

Returns:

  • (Object)

    the current value of changes



22
23
24
# File 'lib/json/merge/three_way_decision.rb', line 22

def changes
  @changes
end

#conflictsObject (readonly)

Returns the value of attribute conflicts

Returns:

  • (Object)

    the current value of conflicts



22
23
24
# File 'lib/json/merge/three_way_decision.rb', line 22

def conflicts
  @conflicts
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



22
23
24
# File 'lib/json/merge/three_way_decision.rb', line 22

def state
  @state
end

Instance Method Details

#conflicted?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/json/merge/three_way_decision.rb', line 31

def conflicted?
  !conflicts.empty?
end

#present?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/json/merge/three_way_decision.rb', line 23

def present?
  state.present
end

#valueObject

Returns:

  • (Object)


27
28
29
# File 'lib/json/merge/three_way_decision.rb', line 27

def value
  state.value
end