StepWhitelist.kt 274 Bytes
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
2
3
4
5
6
7
8
9
10
11
12
13
package org.memobase

import java.io.File
import java.nio.charset.Charset

class StepWhitelist(path: String) {

    private val whitelist = File(path).readLines(Charset.defaultCharset())

    fun check(step: String): Boolean {
        return whitelist.contains(step)
    }
}