Test::...::Line(3pm)
π Test::BDD::Cucumber::Model::Line π
okay so bestie, welcome to Test::BDD::Cucumber::Model::Line β the little model class that represents one single line inside a feature file. yes, just one line. she's small but she knows things π
β¨ VERSION β¨
this is version 0.87, periodt.
πΈ DESCRIPTION πΈ
Model to represent a line in a feature file. that's the whole vibe. one line, one object, no cap.
π ATTRIBUTES π
these are the lil properties every Line object is carrying around with her π«Ά
numberβ the line number this line represents. like, which line in the file she is. iconic.documentβ theTest::BDD::Cucumber::Model::Documentobject this line belongs to. she's not alone, she's got a whole document supporting her πraw_contentβ the content of the line, unmodified. exactly as it appeared, no edits, no glow-up, nothing. fr fr.
π¦ METHODS π¦
the things you can actually do with a Line. let's go π§
indentβ returns the number of preceding spaces before content on a line. it's giving "how far in is she scooted" β¨contentβ returns the line's content, with the indentation stripped. so like, the content but with her indentation taken off πcontent_remove_indentationβ accepts anintof number of spaces, and returns the content with exactly that many preceding spaces removed. exactly that many. not one more, not one less πdebug_summaryβ returns a string with the filename and line number. great for when you're debugging and need receipts π₯filenameβ returns either the filename, or the string"[String]"if the document was loaded from a string. so if there's no real file, she tells you"[String]", no cap.is_blankis_commentβ Return true if the line is either blank, or is a comment.
lowkey important:is_blankandis_commentshare that description β they return true if the line is either blank, or is a comment. so a blank line gets a β fromis_blank, and a comment gets a β fromis_comment. iykyk π
π AUTHOR π
Peter Sergeant pete@clueball.com β the author, the legend, the main character who made this happen π
π LICENSE π
Copyright 2019-2023, Erik Huelsmann
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
so that's the legal tea, bestie β those copyrights are literally the whole thing, and it's licensed under the same terms as Perl π«Ά
and that's the page! this was written against perl v5.40.1, dated 2025-05-29 β shoutout to that version and that date for making this lil manpage moment possible π
β¨ bye bestie, go write some slay feature files πΈπ¦
π¦ where this page comes from
- debian trixie: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms