MealMaster::Ingredient - Represent a MealMaster ingredient


MealMaster documentation  | view source Contained in the MealMaster distribution.

Index


NAME

Top

MealMaster::Ingredient - Represent a MealMaster ingredient

SYNOPSIS

Top

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

DESCRIPTION

Top

MealMaster::Ingredient represents an ingredient in a MealMaster recipe.

METHODS

Top

measure

Returns the measurement unit of the ingredient:

  print $i->measure . "\n";

product

Returns the ingredient name:

  print $i->product . "\n";

quantity

Returns the quantity of measures needed:

  print $i->quantity . "\n";

SEE ALSO

Top

MealMaster, MealMaster::Recipe

AUTHOR

Top

Leon Brocard, <acme@astray.com>

COPYRIGHT

Top


MealMaster documentation  | view source Contained in the MealMaster distribution.