struct Crystal::DefWithMetadata
inherits Struct
¶
A Def with some metadata to speed up matching it against a call signature, or against other defs: - max_size: the maximum number of arguments that can be passed to the method - min_size: the minimum number of arguments that can be passed to the method - yields: whether the method has a block
Class methods¶
Methods¶
#copy_with(min_size _min_size = @min_size, max_size _max_size = @max_size, yields _yields = @yields, def _def = @def)
¶
(min_size _min_size = @min_size, max_size _max_size = @max_size, yields _yields = @yields, def _def = @def)