Sha256: f6472bccd5ee9c3db0bdf1ba4dd739c3190966cdcd65d0acd122557a5884ceb7

Contents?: true

Size: 183 Bytes

Versions: 1

Compression:

Stored size: 183 Bytes

Contents

class SafeOperation
  class Failure
    def initialize(failure)
      @failure = failure
    end

    def value
      @failure
    end

    def success?
      false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
safe_operation-2.0.0 lib/safe_operation/failure.rb