Class: DailyPlanDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/daily_plan_decorator.rb

Direct Known Subclasses

MonthlyPlan, WeeklyPlan

Instance Method Summary collapse

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_planObject



7
8
9
# File 'lib/daily_plan_decorator.rb', line 7

def generate_meal_plan
    @daily_plan.generate_meal_plan
end