Sha256: e9ae707c4a50d56b278bcf9f6d4dc4b2fe995428183d6ac6be638d965699f438

Contents?: true

Size: 177 Bytes

Versions: 8

Compression:

Stored size: 177 Bytes

Contents

require_relative 'result'

module Verbalize
  class Success < Result
    def initialize(value)
      super(outcome: :ok, value: value)
    end

    attr_reader :value
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
verbalize-2.3.1 lib/verbalize/success.rb
verbalize-2.3.0 lib/verbalize/success.rb
verbalize-2.2.0 lib/verbalize/success.rb
verbalize-2.1.1 lib/verbalize/success.rb
verbalize-2.1.0 lib/verbalize/success.rb
verbalize-2.0.1 lib/verbalize/success.rb
verbalize-2.0.0 lib/verbalize/success.rb
verbalize-1.4.1 lib/verbalize/success.rb