MealMaster::Recipe - Represent a MealMaster Recipe


MealMaster documentation  | view source Contained in the MealMaster distribution.

Index


NAME

Top

MealMaster::Recipe - Represent a MealMaster Recipe

SYNOPSIS

Top

  foreach my $r (@recipes) {
    print "Title: " . $r->title . "\n";
    print "Categories: " . join(", ", sort @{$r->categories}) . "\n";
    print "Yield: " . $r->yield . "\n";
    print "Directions: " . $r->directions . "\n";
    print "Ingredients:\n";
    foreach my $i (@{$r->ingredients}) {
      print "  " . $i->quantity .
             " " . $i->measure  .
             " " . $i->product . 
             "\n";
    }

DESCRIPTION

Top

MealMaster::Recipe represents a MealMaster recipe.

METHODS

Top

categories

Returns an array reference of the categories that the recipe is filed under:

    print "Categories: " . join(", ", sort @{$r->categories}) . "\n";

directions

Returns the directions for making the recipe:

    print "Directions: " . $r->directions . "\n";

ingredients

Returns a list of ingredients for making the recipe:

    print "Ingredients:\n";
    foreach my $i (@{$r->ingredients}) {
      print "  " . $i->quantity .
             " " . $i->measure  .
             " " . $i->product . 
             "\n";
    }

title

Returns the title of the recipe:

    print "Title: " . $r->title . "\n";

Returns the yield of the recipe:

    print "Yield: " . $r->yield . "\n";

SEE ALSO

Top

MealMaster, MealMaster::Ingredient

AUTHOR

Top

Leon Brocard, <acme@astray.com>

COPYRIGHT

Top


MealMaster documentation  | view source Contained in the MealMaster distribution.