struct Crystal::TypeFilters
inherits Struct
¶
Class methods¶
.assign_var(filters, target)
¶
(filters, target)
If we have
if a = b ... end
then a
and b
must have the same truthiness. Thus we can strengthen the
negation of the condition from !a || !b
to !a && !b
, which usually
provides a stricter filter.
Methods¶
#dup
¶
Returns a shallow copy of this object.
Because Value
is a value type, this method returns self
,
which already involves a shallow copy of this object because
value types are passed by value.