lib/bcdd/result/success.rb in bcdd-result-0.3.0 vs lib/bcdd/result/success.rb in bcdd-result-0.4.0
- old
+ new
@@ -12,10 +12,14 @@
def value_or
value
end
- alias data_or value_or
+ private
+
+ def name
+ :success
+ end
end
def self.Success(type, value = nil)
Success.new(type: type, value: value)
end