ValueDescriptor.ts
17 lines
| 294 B
| video/mp2t
|
TypeScriptLexer
|
|
r34 | import { Descriptor } from "./interfaces"; | ||
|
|
r39 | export class ValueDescriptor implements Descriptor { | ||
| _value; | ||||
|
|
r34 | |||
|
|
r39 | constructor(value) { | ||
|
|
r34 | this._value = value; | ||
| } | ||||
|
|
r41 | activate() { | ||
|
|
r34 | return this._value; | ||
| } | ||||
|
|
r41 | |||
| toString() { | ||||
| return `@type=${typeof this._value}`; | ||||
| } | ||||
|
|
r39 | } | ||
