Sha256: c8072edb4671ec9abd1680b6eb74ea6676c6af7bbc987f8846e0f0668b3eb4b1
Contents?: true
Size: 447 Bytes
Versions: 3
Compression:
Stored size: 447 Bytes
Contents
require 'singleton' require_relative 'duck_fiber' require_relative 'nullary_relation' module MiniKraken module Core # A nullary relation that unconditionally always fails. class Fail < NullaryRelation include Singleton def initialize super('fail', '#u') end # @return [DuckFiber] def solver_for(_actuals, _env) DuckFiber.new(:failure) end end # class end # module end # module
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mini_kraken-0.1.04 | lib/mini_kraken/core/fail.rb |
mini_kraken-0.1.03 | lib/mini_kraken/core/fail.rb |
mini_kraken-0.1.02 | lib/mini_kraken/core/fail.rb |