Sha256: a2f779dd477430736727ae3d01f7cf85401eab13ec03212c557bea03020f2a6c

Contents?: true

Size: 731 Bytes

Versions: 3

Compression:

Stored size: 731 Bytes

Contents

require 'dry-equalizer'
require 'fear/version'

module Fear
  Error = Class.new(StandardError)
  IllegalStateException = Class.new(Error)
  NoSuchElementError = Class.new(Error)

  autoload :Done, 'fear/done'
  autoload :For, 'fear/for'
  autoload :RightBiased, 'fear/right_biased'
  autoload :Utils, 'fear/utils'

  autoload :Option, 'fear/option'
  autoload :Some, 'fear/some'
  autoload :None, 'fear/none'

  autoload :Try, 'fear/try'
  autoload :Success, 'fear/success'
  autoload :Failure, 'fear/failure'

  autoload :Either, 'fear/either'
  autoload :Left, 'fear/left'
  autoload :Right, 'fear/right'

  module Mixin
    include Either::Mixin
    include For::Mixin
    include Option::Mixin
    include Try::Mixin
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fear-0.10.0 lib/fear.rb
fear-0.9.0 lib/fear.rb
fear-0.8.0 lib/fear.rb