ReadAsParser

org.specs2.specification.script.StepParsers.ReadAs.ReadAsParser
trait ReadAsParser[T] extends StepParser[T]

Attributes

Graph
Supertypes
trait StepParser[T]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def parse1(text: String): T

Concrete methods

def parse(text: String): Either[Throwable, (String, T)]

parse some text and extract some well-type value T if the original text contains delimiters to indicate the values to extract, remove them

parse some text and extract some well-type value T if the original text contains delimiters to indicate the values to extract, remove them

this is equivalent to running strip and run at the same time so it might be more efficient

Attributes

def run(text: String): Either[Throwable, T]
def strip(text: String): String

Inherited methods

def map[S](f: T => S): StepParser[S]

Attributes

Inherited from:
StepParser