Cucumberex.DocString (cucumberex v0.2.1)

Copy Markdown View Source

Multi-line doc string argument in a step.

Summary

Types

t()

@type t() :: %Cucumberex.DocString{
  content: String.t(),
  content_type: String.t() | nil,
  delimiter: String.t()
}

Functions

new(content, content_type \\ nil, delimiter \\ ~s("""))

Build a DocString struct.

Examples

iex> Cucumberex.DocString.new("hello").content
"hello"

iex> Cucumberex.DocString.new("x", "text/plain").content_type
"text/plain"