Test::BDD::Cucumber::Model::Line(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::Model::Line(3pm)

Test::BDD::Cucumber::Model::Line - Model to represent a line in a feature file

version 0.86

Model to represent a line in a feature file

The line number this line represents

The Test::BDD::Cucumber::Model::Document object this line belongs to.

The content of the line, unmodified

Returns the number of preceding spaces before content on a line

Returns the line's content, with the indentation stripped

Accepts an int of number of spaces, and returns the content with exactly that many preceding spaces removed.

Returns a string with the filename and line number

Returns either the filename, or the string "[String]" if the document was loaded from a string

Return true if the line is either blank, or is a comment.

Peter Sergeant "pete@clueball.com"

  Copyright 2019-2023, Erik Huelsmann
  Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
2023-08-29 perl v5.36.0