Class: DailyPlanDecorator
- Inherits:
-
Object
- Object
- DailyPlanDecorator
- Defined in:
- lib/daily_plan_decorator.rb
Direct Known Subclasses
Instance Method Summary collapse
- #generate_meal_plan ⇒ Object
-
#initialize(daily_plan) ⇒ DailyPlanDecorator
constructor
A new instance of DailyPlanDecorator.
Constructor Details
#initialize(daily_plan) ⇒ DailyPlanDecorator
Returns a new instance of DailyPlanDecorator.
3 4 5 |
# File 'lib/daily_plan_decorator.rb', line 3 def initialize(daily_plan) @daily_plan = daily_plan end |
Instance Method Details
#generate_meal_plan ⇒ Object
7 8 9 |
# File 'lib/daily_plan_decorator.rb', line 7 def generate_meal_plan @daily_plan.generate_meal_plan end |