class Dyph::Outcome::Conflicted
Attributes
base[R]
left[R]
right[R]
Public Class Methods
new(left:, base:, right:)
click to toggle source
# File lib/dyph/outcome/conflicted.rb, line 4 def initialize(left:, base:, right:) @left = left @base = base @right = right end
Public Instance Methods
==(other)
click to toggle source
# File lib/dyph/outcome/conflicted.rb, line 10 def ==(other) self.class == other.class && self.left == other.left && self.base == other.base && self.right == other.right end
Also aliased as: eql?
apply(fun)
click to toggle source
# File lib/dyph/outcome/conflicted.rb, line 23 def apply(fun) self.class.new(left: fun[@left], base: fun[@base], right: fun[@right]) end
hash()
click to toggle source
# File lib/dyph/outcome/conflicted.rb, line 19 def hash self.left.hash ^ self.base.hash ^ self.right.hash end