package Test::BDD::Cucumber::Model::Step; { $Test::BDD::Cucumber::Model::Step::VERSION = '0.10'; } use Moose; =head1 NAME Test::BDD::Cucumber::Model::Step - Model to represent a step in a scenario =head1 VERSION version 0.10 =head1 DESCRIPTION Model to represent a step in a scenario =head1 ATTRIBUTES =head2 text The text of the step, once Scenario Outlines have been applied =cut has 'text' => ( is => 'rw', isa => 'Str' ); =head2 verb =head2 verb_original The verb used for the step ('Given'/'When'/etc). C is the one that appeared in the physical file - this will sometimes be C. =cut has 'verb' => ( is => 'rw', isa => 'Str' ); has 'verb_original' => ( is => 'rw', isa => 'Str' ); =head2 line The corresponding L =cut has 'line' => ( is => 'rw', isa => 'Test::BDD::Cucumber::Model::Line' ); =head2 data Step-related data. Either a string in the case of C<"""> or an arrayref of hashrefs for a data table. =cut has 'data' => ( is => 'rw' ); =head2 data_as_strings An arrayref of strings containing the original step's data, for printing out by harnesses =cut has 'data_as_strings' => ( is => 'rw', default => sub {[]}, isa => 'ArrayRef[Str]' ); =head1 AUTHOR Peter Sergeant C =head1 LICENSE Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl =cut 1;