lib/tram/policy/error.rb in tram-policy-0.2.0 vs lib/tram/policy/error.rb in tram-policy-0.2.1
- old
+ new
@@ -4,9 +4,10 @@
# Notice: an error is context-independent; it knows nothing about
# a collection it is placed to; it can be safely moved
# from one collection of [Tram::Policy::Errors] to another.
#
class Error
+ # @!method self.new(value, opts)
# Builds an error
#
# If another error is send to the constructor, the error returned unchanged
#
# @param [Tram::Policy::Error, #to_s] value