Test::BDD::Cucumber::Model::Line(3pm)

Test::BDD::Cucumber::Model::Line3pm

Model to represent a line in a feature file

Version

version 0.87

Overview

Model to represent a line in a feature file

Attributes

number

The line number this line represents

document

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

raw_content

The content of the line, unmodified

Methods

indent

Returns the number of preceding spaces before content on a line

content

Returns the line's content, with the indentation stripped

content_remove_indentation

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

debug_summary

Returns a string with the filename and line number

filename

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

is_blank

is_comment

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

Peter Sergeant "[email protected]"

License

  Copyright 2019-2023, Erik Huelsmann
  Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl

From libtest-bdd-cucumber-perl 0.87-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.