Sha256: 86b001ac7554e9be888e407da7bd8c1c5aa3a6d88f2a41bcb121510dad7e2d97

Contents?: true

Size: 203 Bytes

Versions: 9

Compression:

Stored size: 203 Bytes

Contents

require 'result/success'
require 'result/failure'

module Result

  module DSL
    def Success(value)
      Success.new(value)
    end

    def Failure(error)
      Failure.new(error)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
engineyard-serverside-3.0.4 lib/result/dsl.rb
engineyard-serverside-3.0.3 lib/result/dsl.rb
engineyard-serverside-2.8.0 lib/result/dsl.rb
engineyard-serverside-2.8.0.pre4 lib/result/dsl.rb
engineyard-serverside-2.8.0.pre3 lib/result/dsl.rb
engineyard-serverside-2.8.0.pre2 lib/result/dsl.rb
engineyard-serverside-2.8.0.pre lib/result/dsl.rb
engineyard-serverside-2.7.0.pre lib/result/dsl.rb
engineyard-serverside-2.6.19 lib/result/dsl.rb