SomeOpt

laika.ast.SomeOpt
case class SomeOpt(id: Option[String], styles: Set[String]) extends Options

Options implementation for non-empty instances.

For creating new instances it is usually more convenient to use the various factory objects. Example for creating an instance with an id and two styles applied:

val options = Id("myId") + Styles("style1","style2")

Likewise it is also often more convenient to use the corresponding extractors for pattern matching.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Options
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def +(other: Options): Options

Merges these options with the specified options. If the id has been set in both instances, the other instance overrides this one.

Merges these options with the specified options. If the id has been set in both instances, the other instance overrides this one.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product