module Type
An extension module which allows constructing Any
types using the |
operator.
Definitions
def | other
Create an instance of Any
with the arguments as types.
Signature
-
parameter
other
Type
the alternative type to match.
Implementation
def | other
Any.new([self, other])
end