lib/bcdd/result/failure.rb in bcdd-result-0.3.0 vs lib/bcdd/result/failure.rb in bcdd-result-0.4.0

- old
+ new

@@ -12,10 +12,14 @@ def value_or yield end - alias data_or value_or + private + + def name + :failure + end end def self.Failure(type, value = nil) Failure.new(type: type, value: value) end