App::Sqitch::Plan::LineList3pm
Sqitch deployment plan line list
Usage
my $list = App::Sqitch::Plan::LineList->new(@lines);my @lines = $list->items;my $index = $list->index_of($line);$lines->append($another_line);
Overview
This module is used internally by App::Sqitch::Plan to manage plan file lines. It's modeled on Array::AsHash, but is much simpler and hews closer to the API of App::Sqitch::Plan::ChangeList.
Interface
Constructors
"new"
my $plan = App::Sqitch::Plan::LineList->new(map { $_->name => @_ } @changes );
Instantiates and returns a App::Sqitch::Plan::LineList object. The parameters should be a key/value list of lines. Keys may be duplicated, as long as a tag appears between each instance of a key.
Instance Methods
"count"
"items"
"item_at"
"index_of"
"append"
"insert_at"
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.