Sha256: cf719d929c9dc1fec46f93661ae3f0f658a57685ce2830be5cbc66f9a8894e65

Contents?: true

Size: 218 Bytes

Versions: 4

Compression:

Stored size: 218 Bytes

Contents

module ResultErrorDemo
  class << self
    include Flows::Result::Helpers

    def success_access_error
      ok(some: :data).error
    end

    def failure_access_error
      err(some: :data).unwrap
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flows-0.6.0 bin/errors_cli/result_error_demo.rb
flows-0.5.1 bin/errors_cli/result_error_demo.rb
flows-0.5.0 bin/errors_cli/result_error_demo.rb
flows-0.4.0 bin/errors_cli/result_error_demo.rb