Gherkin::TokenScanner - Input-line format abstraction
use Gherkin::TokenScanner; my $fn = 'my.feature'; my $scanner = Gherkin::TokenScanner->new( $fn );
This module implements an input-line format abstraction, returning inputlines from the indicated source. Currently, only text files are supported input formats, but the idea is that e.g. Excel files could be used as input formats as well, with an abstracted definition of "input line".
Constructor.
The parameter $path_or_ref can be passed either of two types of values:
$path_or_ref
In this case, the parameter is assumed to reference the content to be parsed.
In this case, the parameter is assumed to be a filename. The file will be opened for input and parsed as a feature file.
Returns the next line (Gherkin::Line) token (Gherkin::Token) from the input.
When the end of a file is reached, the file handle is closed.
Gherkin
Gherkin::Line
Gherkin::Parser
Gherkin::Token
See Gherkin.
To install Gherkin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gherkin
CPAN shell
perl -MCPAN -e shell install Gherkin
For more information on module installation, please visit the detailed CPAN module installation guide.