Léon Brocard > MealMaster > MealMaster::Ingredient

Download:
MealMaster-0.28.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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.

syntax highlighting: