The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MealMaster::Ingredient - Represent a MealMaster ingredient

SYNOPSIS

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

DESCRIPTION

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

METHODS

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

MealMaster, MealMaster::Recipe

AUTHOR

Leon Brocard, <acme@astray.com>

COPYRIGHT

Copyright (C) 2005, Leon Brocard

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.