com.ossuminc.riddl.commands.hugo.writers.AdaptorWriter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riddl-commands_3 Show documentation
Show all versions of riddl-commands_3 Show documentation
RIDDL Command Infrastructure and command definitions
The newest version!
/*
* Copyright 2019 Ossum, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ossuminc.riddl.commands.hugo.writers
import com.ossuminc.riddl.language.AST.{Adaptor, AdaptorContents, Parents}
trait AdaptorWriter { this: MarkdownWriter =>
def emitAdaptor(adaptor: Adaptor, parents: Parents): Unit = {
containerHead(adaptor)
emitVitalDefinitionDetails(adaptor, parents)
h2(s"Direction: ${adaptor.direction.format} ${adaptor.referent.format}")
emitProcessorDetails[AdaptorContents](adaptor, parents)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy