AttributePart

laika.directive.BuilderContext.Combinators.AttributePart
class AttributePart[T](key: AttributeKey, decoder: ConfigDecoder[T], isInherited: Boolean, requiredMsg: => String) extends DirectivePart[T]

Attributes

Graph
Supertypes
class DirectivePart[T]
trait DirectiveContext => Result[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(context: DirectiveContext): Result[T]
def as[U](implicit decoder: ConfigDecoder[U]): AttributePart[U]
def hasBody: Boolean

Indicates whether the directive supports a body section after the directive name and attribute section.

Indicates whether the directive supports a body section after the directive name and attribute section.

Attributes

def needsCursor: Boolean

Indicates whether this part or any of its sub-parts requests access to a cursor. This information is used to determine the default phase a directive should be resolved in.

Indicates whether this part or any of its sub-parts requests access to a cursor. This information is used to determine the default phase a directive should be resolved in.

Attributes

def optional: DirectivePart[Option[T]]
def separators: Set[String]

The names of the separator directives accepted by this directive part.

The names of the separator directives accepted by this directive part.

Attributes

Inherited methods

def andThen[A](g: Result[T] => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => DirectiveContext): A => R

Attributes

Inherited from:
Function1
def evalMap[B](f: T => Either[String, B]): DirectivePart[B]

Attributes

Inherited from:
DirectivePart
def map[B](f: T => B): DirectivePart[B]

Attributes

Inherited from:
DirectivePart
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1