Sha256: 182b4a17e3e91db2658dd74c5b40f112d0afdea201d39bde20f73fb9cc6ee7cb

Contents?: true

Size: 357 Bytes

Versions: 7

Compression:

Stored size: 357 Bytes

Contents

module Funkr
  module Categories
    
    # Functors for which alternative (OR) behaviour can be defined
    module Alternative
      
      # Provide an alternative. The type must be as follow :
      #   Functor(A).or_else{ Functor(A) } : Functor(A)
      def or_else
        raise "Alternative#or_else not implemented"
      end
      
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
funkr-0.0.40 lib/funkr/categories/alternative.rb
funkr-0.0.30 lib/funkr/categories/alternative.rb
funkr-0.0.28 lib/funkr/categories/alternative.rb
funkr-0.0.27 lib/funkr/categories/alternative.rb
funkr-0.0.26 lib/funkr/categories/alternative.rb
funkr-0.0.25 lib/funkr/categories/alternative.rb
funkr-0.0.24 lib/funkr/categories/alternative.rb