Sha256: 8f6a80ab9920ef46489a51322e7caa5f81d8b7f4ca4f7c6ff8b83ca315731f41

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

require "iolite/functinal/define_iolite_functinal_send_method"

module Iolite module Adaptor
	module Operators
		define_iolite_functinal_send_method :==
		define_iolite_functinal_send_method :=~
		define_iolite_functinal_send_method :!
		define_iolite_functinal_send_method :!=
		define_iolite_functinal_send_method :!~
		define_iolite_functinal_send_method :===

		# &&
		def product rhs
			Lazy.new { |*args|
				Functinal.invoke(self, *args) && Functinal.invoke(rhs, *args)
			}
		end

		# ||
		def disjunction rhs
			Lazy.new { |*args|
				Functinal.invoke(self, *args) || Functinal.invoke(rhs, *args)
			}
		end
	end
end end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iolite-0.0.3 lib/iolite/adaptor/operators.rb
iolite-0.0.2 lib/iolite/adaptor/operators.rb
iolite-0.0.1 lib/iolite/adaptor/operators.rb