module Mixture
The mixture module.
Constants
- Itself
A proc that returns its first argument.
@return [Proc{(Object) => Object}]
- Prove
A proc that returns true.
@return [Proc{() => true}]
- Refute
A proc that returns false.
@return [Proc{() => false}]
- Undefined
An undefined value. This is used in place so that we can be sure that an argument wasn't passed.
@example As a placeholder.
def self.constraint(value = Undefined, &block) if value != Undefined constraints << value elsif block_given? constraints << block else raise ArgumentError, "Expected an argument or block" end end
@return [Object]
- VERSION
The current version of
Mixture
.@return [String]
Public Class Methods
finalize()
click to toggle source
Finalizes all of the Mixture
modules.
@return [void]
# File lib/mixture.rb, line 44 def self.finalize Mixture::Coerce.finalize Mixture::Extensions.finalize nil end