Skip to content

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

.new(min_size : Int32, max_size : Int32, yields : Bool, def __arg0 : Def)

View source

.new(a_def : Def)

View source

Methods

#clone

View source

#copy_with(min_size _min_size = @min_size, max_size _max_size = @max_size, yields _yields = @yields, def _def = @def)

View source

#def : Def

#max_size : Int32

#min_size : Int32

#required_named_arguments

View source

#restriction_of?(other : DefWithMetadata, owner, strict = false)

View source

#yields : Bool