Skip to content

Allow contracts to be defined on Structs #112

Open
@egonSchiele

Description

@egonSchiele
Item = Struct.new(:name, :weight, :value)

How to specify type constraints on these attributes? Can the contracts library help with this?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions