Skip to content

Commit

Permalink
fix SgmlNode again
Browse files Browse the repository at this point in the history
  • Loading branch information
andimiller committed Jul 1, 2020
1 parent 4726533 commit c27c331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datanodes/src/main/scala/io/idml/datanodes/SgmlNode.scala
Expand Up @@ -4,8 +4,8 @@ import io.idml.{IdmlArray, IdmlObject, IdmlValue}

import scala.collection.mutable

case class SgmlNode(name: String, items: mutable.Buffer[IdmlValue], override val attributes: Map[String, String], body: String) extends IdmlObject with IdmlArray with CompositeValue {
lazy val contents: mutable.Map[String, IdmlValue] = mutable.Map(attributes.toList.map { case (k, v) => k -> IdmlValue(v)}:_*)
case class SgmlNode(name: String, items: mutable.Buffer[IdmlValue], attrs: Map[String, String], body: String) extends IdmlObject with IdmlArray with CompositeValue {
lazy val contents: mutable.Map[String, IdmlValue] = mutable.Map(attrs.toList.map { case (k, v) => k -> IdmlValue(v)}:_*)

def fields: mutable.Map[String, IdmlValue] = contents
}

0 comments on commit c27c331

Please sign in to comment.