From 36c28a538955c0cd9d94c210372337d7a5c2a01b Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 29 Nov 2020 09:31:45 +0900 Subject: extract independent classes --- src/content/operators/impls/EnableJumpMarkOperator.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/content/operators/impls/EnableJumpMarkOperator.ts (limited to 'src/content/operators/impls/EnableJumpMarkOperator.ts') diff --git a/src/content/operators/impls/EnableJumpMarkOperator.ts b/src/content/operators/impls/EnableJumpMarkOperator.ts new file mode 100644 index 0000000..42ca8ee --- /dev/null +++ b/src/content/operators/impls/EnableJumpMarkOperator.ts @@ -0,0 +1,10 @@ +import Operator from "../Operator"; +import MarkKeyRepository from "../../repositories/MarkKeyRepository"; + +export default class EnableJumpMarkOperator implements Operator { + constructor(private readonly repository: MarkKeyRepository) {} + + async run(): Promise { + this.repository.enableJumpMode(); + } +} -- cgit v1.2.3