Class: Json::Merge::ThreeWayDecision::Result
- Inherits:
-
Data
- Object
- Data
- Json::Merge::ThreeWayDecision::Result
- Defined in:
- lib/json/merge/three_way_decision.rb,
sig/json/merge.rbs
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#conflicts ⇒ Object
readonly
Returns the value of attribute conflicts.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes
22 23 24 |
# File 'lib/json/merge/three_way_decision.rb', line 22 def changes @changes end |
#conflicts ⇒ Object (readonly)
Returns the value of attribute conflicts
22 23 24 |
# File 'lib/json/merge/three_way_decision.rb', line 22 def conflicts @conflicts end |
#state ⇒ Object (readonly)
Returns the value of attribute state
22 23 24 |
# File 'lib/json/merge/three_way_decision.rb', line 22 def state @state end |
Instance Method Details
#conflicted? ⇒ Boolean
31 32 33 |
# File 'lib/json/merge/three_way_decision.rb', line 31 def conflicted? !conflicts.empty? end |
#present? ⇒ Boolean
23 24 25 |
# File 'lib/json/merge/three_way_decision.rb', line 23 def present? state.present end |
#value ⇒ Object
27 28 29 |
# File 'lib/json/merge/three_way_decision.rb', line 27 def value state.value end |