Cucumber::Messages::Message - Base class for cucumber messages
# Create a new message class: use Moo; extends 'Cucumber::Messages::Message'; has 'prop1'; has 'prop2';
Instance method.
Returns the data encapsulated by $self as a serialized byte string represented as a single NDJSON line. Note that line-terminating newline character (\n) is not included in the return value.
$self
\n
Returns an instance of class $class which encapsulates the data from the bytestring $str, assuming that it is a single valid NDJSON line.
$class
$str
Please see the included LICENSE for the canonical version. In summary:
The MIT License (MIT)
Copyright (c) 2021 Erik Huelsmann Copyright (c) 2021 Cucumber Ltd
This work is loosely derived from prior work of the same library for Ruby, called cucumber-messages.
cucumber-messages
To install Cucumber::Messages, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cucumber::Messages
CPAN shell
perl -MCPAN -e shell install Cucumber::Messages
For more information on module installation, please visit the detailed CPAN module installation guide.