18 lines
293 B
Plaintext
18 lines
293 B
Plaintext
export default class Ref {
|
|
num: number;
|
|
gen: number;
|
|
|
|
constructor({ num, gen }: { num: number; gen: number }) {
|
|
this.num = num;
|
|
this.gen = gen;
|
|
}
|
|
|
|
toString(): string {
|
|
let str = `${this.num}R`;
|
|
if (this.gen !== 0) {
|
|
str += this.gen;
|
|
}
|
|
return str;
|
|
}
|
|
}
|