package jeb.ddsl

import java.io.File

class FileDescr(
        name: File,
        fileContent: () -> String) : Node(name) {

    private val content = lazy { fileContent() }

    override fun create() {
        name.writeText(content.value)
    }

    override fun contentEqualTo(file: File) = file.isFile && content.value == file.readText()

}

package jeb.ddsl

import java.io.File

class FileDescr(
        name: File,
        fileContent: () -> String) : Node(name) {

    private val content by lazy { fileContent() }

    override fun create() {
        name.writeText(content)
    }

    override fun contentEqualTo(file: File) = file.isFile && content == file.readText()

}

Fix lazy property delegate usage
Fix lazy property delegate usage

aleksey-zhidkov/jeb-k