class RBS::Substitution

Substitution from type variables to types.

The substitution construction is in destructive manner.

sub = Substitution.new sub.add(from: :A, to: type1) sub.add(from: :B, to: type2) sub.instance_type = type3